Well I'm hoping that I can just use the current Task class as my model, since the Task is where all the data is. But yes, with a view class that is pure GTK3, we can plug in some other interface, use the same code, and have any kind of front end we want (be it web, Qt, WxWindows, etc.), and the controller will be able to do all the manipulation of the data model and will be called upon based on what the user does. Essentially it will be a clean API-type deal that we can just hook into another interface that uses the same calls.
On Mon, May 21, 2012 at 8:43 AM, Izidor Matušov <[email protected]>wrote: > On 05/18/2012 08:56 PM, Steve Scheel wrote: > >> Bertrand, I have noticed that it is somewhat divided between the two >> classes, but if I think we could split the TaskEditor into a model where >> the Task class itself is the model, with a TaskEditorView class and a >> TaskEditorController class (names can be changed if needed, of course), >> with the TaskView class simply being a customized widget to do our >> bidding. I will start looking through the task class itself to make sure >> this is possible, but I think that could lead to a good solution. >> > > If I understand it correctly, model of the Task will be a representation > of special parts of the task like "this part is a text and that part is a > subtask". It will be possible to load from a string or dump to a string a > task directly from this model. Controller will handle user inputs and > modify that model and TaskView would just display model without any > important logic in it? Does it mean that task editor could be easily tested > and maybe use a different toolkit for displaying? (e.g. web browser for web > version of GTG?) > > > ______________________________**_________________ > Mailing list: > https://launchpad.net/~gtg-**contributors<https://launchpad.net/%7Egtg-contributors> > Post to : > gtg-contributors@lists.**launchpad.net<[email protected]> > Unsubscribe : > https://launchpad.net/~gtg-**contributors<https://launchpad.net/%7Egtg-contributors> > More help : > https://help.launchpad.net/**ListHelp<https://help.launchpad.net/ListHelp> >
_______________________________________________ Mailing list: https://launchpad.net/~gtg-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~gtg-contributors More help : https://help.launchpad.net/ListHelp

