Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Move some GUI code from sdk to src
thomas:
--- Quote from: oBFusCATed on July 17, 2013, 03:20:23 pm ---Unfortunately I'm not sure if this task could be fully completed. The cbProject and ProjectFile classes are too tightly bound to the wxTreeItemID stuff. :(
--- End quote ---
Though that happened out of lack of thinking, not out of necessity. A cbProject is actually little more than a std::list<ProjectFile>, except it uses the obnoxious wxWidgets containers instead. Same could be said about ProjectFile. There's no reason it needs any GUI, all it does is store some information about a filename, which compiler type to invoke, some custom compile flags, and a few utility functions to make your life easier. None of that needs a GUI. We only tainted it with GUI stuff by accident or out of laziness back then, a decade or so ago.
--- Quote from: oBFusCATed on July 17, 2013, 03:20:23 pm ---Also the cbEditor class is a GUI class in its nature and I'm not sure it could be made less GUI.
--- End quote ---
It's true that an editor is somewhat "necessarily GUI" unless it's a console text editor. On the other hand, the "editor" name is totally bogus, people have written games as "editors" if you remember. So it's perfectly conceivable to write a "null editor" too. One would just have to make sure that the application works fine with whatever editor is loaded, even if it doesn't do anything useful (tbh I don't know if that's the case, but it should be?).
golgepapaz:
Seems like projectmanagerui.cpp and .h files are not added to other project configurations. (wx29 and wx29-64 are the ones I've noticed)
oBFusCATed:
Windows patch welcomed as I cannot test.
I've just added it to wx29-unix.
golgepapaz:
will do. Also I've noticed there are other inconsistencies. Many files are missing from some configurations Like project_options ,find_replace , whole propgrid
stuff . Is there a reason to not include them into other configurations? If not I'll try to fix all of them.
Jenna:
Propgrid is not needed/used/compiled for wx2.9 projects, as it is included in wx2.9.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version