[bt-devel] Config system

Gary Holmlund gary.holmlund at gmail.com
Thu Feb 19 08:21:29 MST 2009


Eeli Kaikkonen wrote:
> Quoting Eeli Kaikkonen <eekaikko at mail.student.oulu.fi>:
>
>
>>> I think the right order for me to proceed is:
>>>
>>> 1. Convert KActions to QActions
>>> 2. Delete the KActionCollection and not replace it.
>>> 3. Get back to replacing KApplication with QApplication.
>>> 4. Do the About dialog.
>>>
>>> I don't think these tasks will be very long.
>>>
>>
>> I guess you are right. There are difficulties with standard actions and
>> KAction subclasses. For example KToolBarPopupAction needs to be
>> replaced with QWidgetAction or something else. It takes a little bit
>> more time than just plain KAction, but should still be straightforward.
>>
>> I'm eager to get BT compile under Windows, so we can leave even the
>> About dialog later.
>
> I looked at KActionCollection. It's used quite much and in many ways 
> in our code, so it can't just be taken away. If we want to keep our 
> code working we have to either do everything and all Action related in 
> one big chunk, or replace KActionCollection with BtActionCollection 
> which has more than two functions.
> It must at least:
>     - return an action by name
>     - create a new action with certain arguments and return it
>     - add an action
> But the most problematic thing is that it's used to add actions to 
> windows or widgets automatically. I think I have some time tonight so 
> I can look into this, unless Gary is already doing something.
>
> Now we need more communication than ever, so let's keep everyone 
> informed about our current tasks.
>
> --Eeli Kaikkonen
Eeli,

I agree with your comments about needing a KActionCollection 
replacement. I think that a BtActionCollection with the above functions 
is right, at least for now.

I have a version of BT running with no KAction, KActionMenu, KMenu, and 
KApplication. I had to comment out some actions that needed "return an 
action by name". It also does not yet have command line arguments. I 
should be able to address these two issues in the next few days.

Gary



More information about the bt-devel mailing list