I am finally getting around to implementing a feature I have wanted for 
a while.

This message has two parts. 

1) is the question, how do I go about getting SVN write access, and what 
is the development process.
2) Here is what I am trying to do, and my approach for review

Feature:
When you double click on an item (task) in the treeview, I would like 
the viewer to automatically open to the field that you clicked on.
For instance,  If I click on the categories column, I want the viewer to 
open to the category tab.  If I click on the "Start Date" column, I 
would like the "Dates" tab to show and the "Start Date" column to have 
focus.


Approach:
It is not hard to get the column that is clicked on from a treectrl,
the column number can be transfered to a "field" that the viewer will 
know about. (I have not figured out the mapping, but I suggest it be 
stored in the treectrl somehow)

I specifically want to add a kwarg to that viewers should process called 
"openOnField".  If the viewer doesn't process it, there is no harm.
Then the task viewer can use "openOnField" to set the correct tab and 
set focus to the correct field.  I can add support for other viewers if 
there is a desire.

To do this, I need to be able to pass all this information through the 
command notification process.
Step one is to process the kwargs at the taskviewer
Step two is to allow kwargs to pass into the  TaskViewer.editItemDialog 
method. Below is the current editItemDialog function

    def editItemDialog(self, *args, **kwargs):
        return dialog.editor.TaskEditor(wx.GetTopLevelParent(self),
            command.EditTaskCommand(self.list, self.curselection()),
            self.list, self.uiCommands, self.settings, self.categories,
            bitmap=kwargs['bitmap'])

I was just wondering if there is a reason that kwargs other than 
'bitmap'  are not being passed through, and if specific kwargs should be 
filtered.  I don't believe it matters.  I was thinking about just 
passing through all kwargs.

TaskEdit (uicommand.py) will also need to be modified to pass the field 
through.

-------------------------------
If someone can help me figure out a generic way to turn a column in the 
task tree view into a "field" string that the task editor dialog can

 Is there already a concept of "field" from the XML that can be used by 
the viewer to set the active tab&control?

When I last looked (last January) I could not figure out a clean way to 
get all this information.  If I recall, the column names in the task 
tree view were not derived from the same data that showed the labels on 
the TaskEditor dialog.


I am sure I will have other questions, but thats it for now.


Carl






 

Reply via email to