Local and system headers files project selector #1434
Replies: 5 comments
-
Tonight's 4/23 build will change what happens when you click the Add button in the dialog that first comes up when you click the button in either the system_src or system_hdr properties. I'd appreciate it if you could try this out when you get a chance and let me know if this will ultimately make it easier for you to add header files from other libraries. |
Beta Was this translation helpful? Give feedback.
-
Thank you @Randalphwa I just tried your last modification. Anyway what you did, works perfectly. Perhaps, if I were you, I'd avoid to use wxWidgwets include folder as default, because it takes really to long to show the content. |
Beta Was this translation helpful? Give feedback.
-
Both busy cursor and removal button is planned. On Windows the entries are stored under:
Short-term, you can use regedit to remove until I get the Remove functionality added. I'm leaning towards a Search edit box with auto-complete for really large libraries like wxWidgets/include. In some cases the dev will already know the name of the file to insert, but might not know or simply not want to scroll to the section that has the folder containing header file. Even auto-scrolling to a specific folder would be helpful. If I leave in the wxWidgets directory (only available if $WXWIN is set) then I'll add some smarts to it to remove directories you probably won't care about. E.g., if you are running on Windows, then the osx/, unix/, and /univ directories proably aren't going to be useful. BTW, the wxWidgets directory is only added if you have < 9 folders in the history for that drop down. The same is true for the root directory your project is in -- that's only added if you have < 9 folders in the history for that drop down. |
Beta Was this translation helpful? Give feedback.
-
Kind @Randalphwa, in my opinion, what you are doing requires an effort that probably won't cover all expectations. For instance, I normally use libraries based on .hpp files or in other cases I neeed to include other kind of files such as .cc, which are usefull to split up an extra large class ... Not all a developer needs to "include", is a .h header. Don't get me wrong, but I'm afraid you are doing more than it is necessary. Just to clarify what I think about. ... perhaps it could be a mix of what you are implementing and the free content of "header_preamble" field. |
Beta Was this translation helpful? Give feedback.
-
It probably makes sense to put a toolbar above that list that handles add, edit, remove, move up and move down, and then the side buttons would be Find... and Sort. That would make it look and function more like |
Beta Was this translation helpful? Give feedback.
-
It would be very helpful to add a way based on which the user should be able to add files without using "files selector".
The current file selector, adds files making them relatives to wxUI project path, but in case I have to move a project from a folder to another all #includes directives referred to external libraries become messy, and it is an hard job make them tidy again.
Generally speacking, #include directives for files which belong to a C++ projet can be expressed using their relative paths reffered to wxUI project and that's fine, but for files belonging to external libraries, they are often, in my case always, expressed using relative paths referred to directories defined in IDE tools such as VS, CodeLite, ecc ...
Actually the user is able to get it only typing its own files directly into "local_hdr_includes" or "system_hdr_includes" fields.
But as you can imagine, when such files are many, it is not confortable.
As I see it, another button to add a string inserted by the user would be helpful also a resizable dialog would be useful.
Beta Was this translation helpful? Give feedback.
All reactions