Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Move some GUI code from sdk to src
oBFusCATed:
I don't like much that the sdk target contains lots of UI code.
And I want gradually to remove all of it.
The first step in this direction I want to make is to move the EditorConfigurationDlg from sdk to src.
Currently there are two reason for its presence in the sdk:
1. It is shown by the context menu in the editor
2. There is a script binding to it
Is there anyone which will suffer much by such a change?
The reason I want to move the class is that I want to make changes to it and it will make it easier (faster compilation)
to do it.
MortenMacFly:
--- Quote from: oBFusCATed on April 04, 2013, 10:00:14 pm ---1. It is shown by the context menu in the editor
2. There is a script binding to it
Is there anyone which will suffer much by such a change?
--- End quote ---
Do you mean both functionalities would be removed? I use the first quite some times.
But generally I have no objections against making the SDK UI independent. I would (however) welcome any ability to re-use dialogs from within plugins to avoid re-inventing the wheel. Just like you did with the debugger. Maybe another "sdk_ui" layer makes sense...
Also keep in contact with Jens - the overall goal should be a C::B build system w/o GUI like he did in the console branch.
oBFusCATed:
--- Quote from: MortenMacFly on April 05, 2013, 12:26:50 pm ---Do you mean both functionalities would be removed? I use the first quite some times.
--- End quote ---
Yes, both of them. The (1) is the same as "Settings -> Editor...", which is not that much harder to reach.
And if you really need it, probably we can restore it with some kind of message.
--- Quote from: MortenMacFly on April 05, 2013, 12:26:50 pm ---But generally I have no objections against making the SDK UI independent. I would (however) welcome any ability to re-use dialogs from within plugins to avoid re-inventing the wheel. Just like you did with the debugger. Maybe another "sdk_ui" layer makes sense...
--- End quote ---
Probably it will be a good idea to have libcodeblocksui.so but the problem is that almost every part of the sdk has the ui bolted into it.
--- Quote from: MortenMacFly on April 05, 2013, 12:26:50 pm ---Also keep in contact with Jens - the overall goal should be a C::B build system w/o GUI like he did in the console branch.
--- End quote ---
The console branch removes the GUI with the use of lots of ifdefs without much changes to the API or moving stuff around.
p.s. I'll post a patch tonight.
oBFusCATed:
I've skipped the patch and just committed - if you don't like it now is the time.
Also I've started the extraction of the GUI part from ProjectManager and I'm not sure I want to continue.
Is there any technical reason for the singleton infestation caused by the Manager?
MortenMacFly:
--- Quote from: oBFusCATed on April 07, 2013, 09:33:58 pm ---Is there any technical reason for the singleton infestation caused by the Manager?
--- End quote ---
Sure - There should an can only be one project manager..?!
Navigation
[0] Message Index
[#] Next page
Go to full version