Exemplo n.º 1
0
 def createWindowComponents(self):
     self.__usingTabbedMainWindow = self.settings.getboolean('view', 'tabbedmainwindow') 
     if self.__usingTabbedMainWindow:
         containerWidget = widgets.AUINotebook(self)
     else:
         containerWidget = self
     self.viewer = viewercontainer.ViewerContainer(containerWidget,
         self.settings, 'mainviewer') 
     viewerfactory.addTaskViewers(self.viewer, self.taskFile.tasks(), 
         self.settings, self.taskFile.categories(), self.taskFile.efforts())
     viewerfactory.addEffortViewers(self.viewer, self.taskFile.tasks(), 
         self.settings)
     viewerfactory.addCategoryViewers(self.viewer, self.taskFile.categories(),
         self.settings, self.taskFile.tasks(), self.taskFile.notes())
     if self.settings.getboolean('feature', 'notes'):
         viewerfactory.addNoteViewers(self.viewer, self.taskFile.notes(),
              self.settings, self.taskFile.categories())
     import status
     self.SetStatusBar(status.StatusBar(self, self.viewer))
     import menu
     self.SetMenuBar(menu.MainMenu(self, self.settings, self.iocontroller, 
                                   self.viewer, self.taskFile))
     self.createTaskBarIcon()
     self.reminderController = \
         remindercontroller.ReminderController(self.taskFile.tasks(), 
             self.taskFile.categories(), self.settings)
Exemplo n.º 2
0
    def createWindowComponents(self):
        self.viewer = viewercontainer.ViewerContainer(self, self.settings, "mainviewer")
        self.uiCommands = uicommand.UICommands(
            self,
            self.iocontroller,
            self.viewer,
            self.settings,
            self.taskFile.tasks(),
            self.taskFile.efforts(),
            self.taskFile.categories(),
            self.taskFile.notes(),
        )
        viewerfactory.addTaskViewers(
            self.viewer, self.taskFile.tasks(), self.uiCommands, self.settings, self.taskFile.categories()
        )
        viewerfactory.addEffortViewers(self.viewer, self.taskFile.tasks(), self.uiCommands, self.settings)
        viewerfactory.addCategoryViewers(self.viewer, self.taskFile.categories(), self.uiCommands, self.settings)
        if self.settings.getboolean("feature", "notes"):
            viewerfactory.addNoteViewers(
                self.viewer, self.taskFile.notes(), self.uiCommands, self.settings, self.taskFile.categories()
            )
        import status

        self.SetStatusBar(status.StatusBar(self, self.viewer))
        import menu

        self.SetMenuBar(menu.MainMenu(self, self.uiCommands, self.settings))
        self.createTaskBarIcon(self.uiCommands)
        self.reminderController = remindercontroller.ReminderController(
            self.taskFile.tasks(), self.taskFile.categories(), self.settings, self.uiCommands
        )
Exemplo n.º 3
0
 def createWindowComponents(self):
     self.panel = wx.Panel(self)
     self.viewer = viewercontainer.ViewerAUINotebook(self.panel, 
         self.settings, 'mainviewer') 
     self.uiCommands = uicommand.UICommands(self, self.iocontroller,
         self.viewer, self.settings, self.taskFile, self.effortList, self.taskFile.categories())
     self.initLayout()
     viewerfactory.addTaskViewers(self.viewer, self.taskFile, 
         self.uiCommands, self.settings, self.taskFile.categories())
     viewerfactory.addEffortViewers(self.viewer, self.taskFile, 
         self.uiCommands, self.settings)
     viewerfactory.addCategoryViewers(self.viewer, self.taskFile.categories(),
         self.uiCommands, self.settings)
     import status
     self.SetStatusBar(status.StatusBar(self, self.viewer))
     import menu
     self.SetMenuBar(menu.MainMenu(self, self.uiCommands, self.settings))
     self.createTaskBarIcon(self.uiCommands)
     self.reminderController = \
         remindercontroller.ReminderController(self.taskFile)