Esempio n. 1
0
 def __init__(self, group):
     NormalWidgetClass.__init__(self, group)
     ####
     hbox = gtk.HBox()
     self.showSeperatedYmdInputsCheck = gtk.CheckButton(_('Show Seperated Inputs for Year, Month and Day'))
     pack(hbox, self.showSeperatedYmdInputsCheck)
     pack(hbox, gtk.Label(''), 1, 1)
     pack(self, hbox)
Esempio n. 2
0
 def __init__(self, group):
     NormalWidgetClass.__init__(self, group)
     ####
     hbox = gtk.HBox()
     self.showSeperatedYmdInputsCheck = gtk.CheckButton(
         _('Show Seperated Inputs for Year, Month and Day'))
     pack(hbox, self.showSeperatedYmdInputsCheck)
     pack(hbox, gtk.Label(''), 1, 1)
     pack(self, hbox)
Esempio n. 3
0
 def __init__(self, group):
     NormalWidgetClass.__init__(self, group)
     ###
     hbox = gtk.HBox()
     label = gtk.Label(_('Show Date in Event Summary'))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     self.sizeGroup.add_widget(label)
     self.showDateCheck = gtk.CheckButton()
     pack(hbox, self.showDateCheck)
     pack(self, hbox)
Esempio n. 4
0
 def __init__(self, group):
     NormalWidgetClass.__init__(self, group)
     ###
     hbox = gtk.HBox()
     label = gtk.Label(_('Default Task Duration'))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     self.sizeGroup.add_widget(label)
     self.defaultDurationBox = common.DurationInputBox()
     pack(hbox, self.defaultDurationBox)
     pack(self, hbox)
Esempio n. 5
0
 def __init__(self, group):
     NormalWidgetClass.__init__(self, group)
     ###
     hbox = gtk.HBox()
     label = gtk.Label(_('Default Task Duration'))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     self.sizeGroup.add_widget(label)
     self.defaultDurationBox = common.DurationInputBox()
     pack(hbox, self.defaultDurationBox)
     pack(self, hbox)
Esempio n. 6
0
 def __init__(self, group):
     NormalWidgetClass.__init__(self, group)
     ###
     hbox = gtk.HBox()
     label = gtk.Label(_('Show Date in Event Summary'))
     label.set_alignment(0, 0.5)
     pack(hbox, label)
     self.sizeGroup.add_widget(label)
     self.showDateCheck = gtk.CheckButton()
     pack(hbox, self.showDateCheck)
     pack(self, hbox)
Esempio n. 7
0
 def __init__(self, group):
     NormalWidgetClass.__init__(self, group)
     #####
     totalFrame = gtk.Frame(group.desc)
     totalVbox = gtk.VBox()
     ###
     expandHbox = gtk.HBox()## for courseList and classTimeBounds
     ##
     frame = gtk.Frame(_('Course List'))
     self.courseListEditor = CourseListEditor(self.group)
     self.courseListEditor.set_size_request(100, 150)
     frame.add(self.courseListEditor)
     pack(expandHbox, frame, 1, 1)
     ##
     frame = gtk.Frame(_('Class Time Bounds'))## FIXME
     self.classTimeBoundsEditor = ClassTimeBoundsEditor(self.group)
     self.classTimeBoundsEditor.set_size_request(50, 150)
     frame.add(self.classTimeBoundsEditor)
     pack(expandHbox, frame)
     ##
     pack(totalVbox, expandHbox, 1, 1)
     #####
     totalFrame.add(totalVbox)
     pack(self, totalFrame, 1, 1)## expand? FIXME
Esempio n. 8
0
 def __init__(self, group):
     NormalWidgetClass.__init__(self, group)
     ######
     hbox = gtk.HBox()
     label = gtk.Label(_('VCS Type'))
     label.set_alignment(0, 0.5)
     self.sizeGroup.add_widget(label)
     pack(hbox, label)
     self.vcsTypeCombo = gtk.combo_box_new_text()
     for name in vcsModuleNames:
         self.vcsTypeCombo.append_text(name)## descriptive name FIXME
     pack(hbox, self.vcsTypeCombo)
     pack(self, hbox)
     ######
     hbox = gtk.HBox()
     label = gtk.Label(_('Directory'))
     label.set_alignment(0, 0.5)
     self.sizeGroup.add_widget(label)
     pack(hbox, label)
     self.dirEntry = gtk.Entry()
     pack(hbox, self.dirEntry)
     ##
     #self.dirBrowse = gtk.Button(_('Browse'))
     pack(self, hbox)
Esempio n. 9
0
 def __init__(self, group):
     NormalWidgetClass.__init__(self, group)
     ######
     hbox = gtk.HBox()
     label = gtk.Label(_('VCS Type'))
     label.set_alignment(0, 0.5)
     self.sizeGroup.add_widget(label)
     pack(hbox, label)
     self.vcsTypeCombo = gtk.combo_box_new_text()
     for name in vcsModuleNames:
         self.vcsTypeCombo.append_text(name)  ## descriptive name FIXME
     pack(hbox, self.vcsTypeCombo)
     pack(self, hbox)
     ######
     hbox = gtk.HBox()
     label = gtk.Label(_('Directory'))
     label.set_alignment(0, 0.5)
     self.sizeGroup.add_widget(label)
     pack(hbox, label)
     self.dirEntry = gtk.Entry()
     pack(hbox, self.dirEntry)
     ##
     #self.dirBrowse = gtk.Button(_('Browse'))
     pack(self, hbox)
Esempio n. 10
0
 def __init__(self, group):
     NormalWidgetClass.__init__(self, group)
     #####
     totalFrame = gtk.Frame(group.desc)
     totalVbox = gtk.VBox()
     ###
     expandHbox = gtk.HBox()  ## for courseList and classTimeBounds
     ##
     frame = gtk.Frame(_('Course List'))
     self.courseListEditor = CourseListEditor(self.group)
     self.courseListEditor.set_size_request(100, 150)
     frame.add(self.courseListEditor)
     pack(expandHbox, frame, 1, 1)
     ##
     frame = gtk.Frame(_('Class Time Bounds'))  ## FIXME
     self.classTimeBoundsEditor = ClassTimeBoundsEditor(self.group)
     self.classTimeBoundsEditor.set_size_request(50, 150)
     frame.add(self.classTimeBoundsEditor)
     pack(expandHbox, frame)
     ##
     pack(totalVbox, expandHbox, 1, 1)
     #####
     totalFrame.add(totalVbox)
     pack(self, totalFrame, 1, 1)  ## expand? FIXME
Esempio n. 11
0
 def updateWidget(self):  ## FIXME
     NormalWidgetClass.updateWidget(self)
     self.defaultDurationBox.setDuration(*self.group.defaultDuration)
Esempio n. 12
0
 def updateVars(self):
     NormalWidgetClass.updateVars(self)
     ##
     self.group.setCourses(self.courseListEditor.getData())
     self.group.classTimeBounds = self.classTimeBoundsEditor.getData()
Esempio n. 13
0
 def updateWidget(self):  ## FIXME
     NormalWidgetClass.updateWidget(self)
     self.courseListEditor.setData(self.group.courses)
     self.classTimeBoundsEditor.setData(self.group.classTimeBounds)
Esempio n. 14
0
 def updateVars(self):
     NormalWidgetClass.updateVars(self)
     self.group.showDate = self.showDateCheck.get_active()
Esempio n. 15
0
 def updateVars(self):
     NormalWidgetClass.updateVars(self)
     self.group.showSeperatedYmdInputs = self.showSeperatedYmdInputsCheck.get_active()
Esempio n. 16
0
 def updateVars(self):
     NormalWidgetClass.updateVars(self)
     self.group.defaultDuration = self.defaultDurationBox.getDuration()
Esempio n. 17
0
 def updateWidget(self):
     NormalWidgetClass.updateWidget(self)
     self.showSeperatedYmdInputsCheck.set_active(
         self.group.showSeperatedYmdInputs)
Esempio n. 18
0
 def updateWidget(self):  ## FIXME
     NormalWidgetClass.updateWidget(self)
     self.showDateCheck.set_active(self.group.showDate)
Esempio n. 19
0
 def updateWidget(self):## FIXME
     NormalWidgetClass.updateWidget(self)
     self.courseListEditor.setData(self.group.courses)
     self.classTimeBoundsEditor.setData(self.group.classTimeBounds)
Esempio n. 20
0
 def updateVars(self):
     NormalWidgetClass.updateVars(self)
     self.group.vcsType = vcsModuleNames[self.vcsTypeCombo.get_active()]
     self.group.vcsDir = self.dirEntry.get_text()
Esempio n. 21
0
 def updateWidget(self):
     NormalWidgetClass.updateWidget(self)
     self.vcsTypeCombo.set_active(vcsModuleNames.index(self.group.vcsType))
     self.dirEntry.set_text(self.group.vcsDir)
Esempio n. 22
0
 def updateVars(self):
     NormalWidgetClass.updateVars(self)
     ##
     self.group.setCourses(self.courseListEditor.getData())
     self.group.classTimeBounds = self.classTimeBoundsEditor.getData()
Esempio n. 23
0
 def updateVars(self):
     NormalWidgetClass.updateVars(self)
     self.group.showDate = self.showDateCheck.get_active()
Esempio n. 24
0
 def updateVars(self):
     NormalWidgetClass.updateVars(self)
     self.group.defaultDuration = self.defaultDurationBox.getDuration()
Esempio n. 25
0
 def updateVars(self):
     NormalWidgetClass.updateVars(self)
     self.group.showSeperatedYmdInputs = self.showSeperatedYmdInputsCheck.get_active(
     )
Esempio n. 26
0
 def updateWidget(self):## FIXME
     NormalWidgetClass.updateWidget(self)
     self.defaultDurationBox.setDuration(*self.group.defaultDuration)
Esempio n. 27
0
 def updateWidget(self):
     NormalWidgetClass.updateWidget(self)
     self.showSeperatedYmdInputsCheck.set_active(self.group.showSeperatedYmdInputs)
Esempio n. 28
0
 def updateWidget(self):
     NormalWidgetClass.updateWidget(self)
     self.vcsTypeCombo.set_active(vcsModuleNames.index(self.group.vcsType))
     self.dirEntry.set_text(self.group.vcsDir)
Esempio n. 29
0
 def updateVars(self):
     NormalWidgetClass.updateVars(self)
     self.group.vcsType = vcsModuleNames[self.vcsTypeCombo.get_active()]
     self.group.vcsDir = self.dirEntry.get_text()
Esempio n. 30
0
 def updateWidget(self):## FIXME
     NormalWidgetClass.updateWidget(self)
     self.showDateCheck.set_active(self.group.showDate)