Beispiel #1
0
 def __init__(self, widget, text,profilecore,  state):
     TwiceCommand.__init__(self, state)
     Command.__init__(self, _('Add Label'))
     self._widget = widget
     self._text = text 
     self._profilecore = profilecore
     self._new = False 
 def __init__(self, widget, text, profilecore, state):
     TwiceCommand.__init__(self, state)
     Command.__init__(self, _('Add Label'))
     self._widget = widget
     self._text = text
     self._profilecore = profilecore
     self._new = False
Beispiel #3
0
 def __init__(self, widget, list_new, list_old, profilecore,state):
     TwiceCommand.__init__(self, state)
     Command.__init__(self, _('Update OptionList'))
     self._widget = widget
     self._new_list = list_new
     self._old_list = list_old
     self._profilecore = profilecore
Beispiel #4
0
 def __init__(self, widget, list_new, list_old, profilecore, state):
     TwiceCommand.__init__(self, state)
     Command.__init__(self, _('Update OptionList'))
     self._widget = widget
     self._new_list = list_new
     self._old_list = list_old
     self._profilecore = profilecore
 def __init__(self, option, optioncore,modeltreeview,optiondisplay, state):
     TwiceCommand.__init__(self, state)
     Command.__init__(self, 'Add / Remove a Option')
     self._option = option
     self.options = optioncore
     self.__model = modeltreeview
     self.optionlist = optiondisplay.optionlist
     self.optiondisplay = optiondisplay
Beispiel #6
0
 def __init__(self, widget_container, widget_option,profilecore, page, state):
     TwiceCommand.__init__(self, state)
     Command.__init__(self, _('Add/Remove Option'))
     self._widget = widget_container
     self._widget_option = widget_option
     self._profilecore = profilecore
     self._saved = None 
     self._page = page
 def __init__(self, option, optioncore, modeltreeview, optiondisplay,
              state):
     TwiceCommand.__init__(self, state)
     Command.__init__(self, 'Add / Remove a Option')
     self._option = option
     self.options = optioncore
     self.__model = modeltreeview
     self.optionlist = optiondisplay.optionlist
     self.optiondisplay = optiondisplay
Beispiel #8
0
 def __init__(self, widget, text, profilecore, page, state):
     TwiceCommand.__init__(self, state)
     Command.__init__(self, _('Change Label'))
     self._profilecore = profilecore
     self._widget = widget
     self._text = text
     self._old_text = None
     self._is_section = False
     self._page = page
 def __init__(self, widget_container, widget_option, profilecore, page,
              state):
     TwiceCommand.__init__(self, state)
     Command.__init__(self, _('Add/Remove Option'))
     self._widget = widget_container
     self._widget_option = widget_option
     self._profilecore = profilecore
     self._saved = None
     self._page = page
Beispiel #10
0
 def __init__(self, widget, text, profilecore, page, state):
     TwiceCommand.__init__(self, state)
     Command.__init__(self, _('Change Label'))
     self._profilecore = profilecore
     self._widget = widget
     self._text = text
     self._old_text = None
     self._is_section = False
     self._page = page
Beispiel #11
0
    def __init__(self, table, widget, coords, state): 
        TwiceCommand.__init__(self, state)
        Command.__init__(self, _('Add/Remove Voidplace'))
        self._box = table
        self._table = table.get_table()

        self._widget = widget
        self._coords = coords
        self._x,self._y = coords[widget]  
        #self._spacing = self._table.get_row_spacing(self._x)
        self._spacing = SPACE_TABLE
    def __init__(self, table, widget, coords, state):
        TwiceCommand.__init__(self, state)
        Command.__init__(self, _('Add/Remove Voidplace'))
        self._box = table
        self._table = table.get_table()

        self._widget = widget
        self._coords = coords
        self._x, self._y = coords[widget]
        #self._spacing = self._table.get_row_spacing(self._x)
        self._spacing = SPACE_TABLE
Beispiel #13
0
    def __init__(self, notebook, number,profilecore, state):
        '''
        @param number: number of num pages to move ; default should be 1
        @type number: Integer
        '''

        TwiceCommand.__init__(self, state)
        Command.__init__(self, _('Move Page'))
        self._notebook = notebook
        self._page = self._notebook.get_nth_page(self._notebook.get_current_page())
        self._number = number
        self._profilecore = profilecore
Beispiel #14
0
    def __init__(self, notebook, page, number, profilecore, state):
        TwiceCommand.__init__(self, state)
        Command.__init__(self, _('Add/Remove Page'))
        self._notebook = notebook
        self._page = page
        self._number = number
        self._profilecore = profilecore
        self._name = self._page.get_name()

        self.label = None

        self._new = False
    def __init__(self, notebook, page, number, profilecore, state):
        TwiceCommand.__init__(self, state)
        Command.__init__(self, _('Add/Remove Page'))
        self._notebook = notebook
        self._page = page
        self._number = number
        self._profilecore = profilecore
        self._name = self._page.get_name()

        self.label = None

        self._new = False
    def __init__(self, notebook, number, profilecore, state):
        '''
        @param number: number of num pages to move ; default should be 1
        @type number: Integer
        '''

        TwiceCommand.__init__(self, state)
        Command.__init__(self, _('Move Page'))
        self._notebook = notebook
        self._page = self._notebook.get_nth_page(
            self._notebook.get_current_page())
        self._number = number
        self._profilecore = profilecore
Beispiel #17
0
 def __init__(self, widget_container, widget, coords , profilecore,  state):
     TwiceCommand.__init__(self, state)
     Command.__init__(self, _('Move item'))
     self._parent = widget_container
     self._section_name = widget_container.get_name()
     self._table = widget_container.get_table()
     self._move = widget
     self._coords = coords
     self._profilecore = profilecore
     self._x, self._y = self._coords[widget]
     self._name = widget.get_name()
     if self._name == None:
         self._voidplace = True 
     else :
         self._voidplace = False
 def __init__(self, widget_container, widget, coords, profilecore, state):
     TwiceCommand.__init__(self, state)
     Command.__init__(self, _('Move item'))
     self._parent = widget_container
     self._section_name = widget_container.get_name()
     self._table = widget_container.get_table()
     self._move = widget
     self._coords = coords
     self._profilecore = profilecore
     self._x, self._y = self._coords[widget]
     self._name = widget.get_name()
     if self._name == None:
         self._voidplace = True
     else:
         self._voidplace = False
 def __init__(self, table, widget, coords, state):
     self._last = table.get_last()
     self._box = table
     self._old_last = self._last
     if self._last != None:
         x, y = coords[self._last]
     else:
         x, y = -1, 0
     coords[widget] = [x + 1, y + 1]
     TwiceCommand.__init__(self, state)
     Command.__init__(self, _('Add/Remove Voidplace'))
     self._table = table.get_table()
     self._box.set_last(widget)
     self._widget = widget
     self._x, self._y = coords[widget]
     self._coords = coords
     #self._spacing = self._table.get_row_spacing(x-1)
     self._spacing = SPACE_TABLE
Beispiel #20
0
 def __init__(self,table, widget, coords, state):
     self._last = table.get_last()
     self._box = table
     self._old_last = self._last
     if self._last != None :
         x, y = coords[self._last] 
     else: 
         x, y = -1,0
     coords[widget] = [x  +1 , y+1]
     TwiceCommand.__init__(self, state)
     Command.__init__(self, _('Add/Remove Voidplace'))
     self._table = table.get_table()
     self._box.set_last(widget)
     self._widget = widget
     self._x,self._y = coords[widget]  
     self._coords = coords
     #self._spacing = self._table.get_row_spacing(x-1)
     self._spacing = SPACE_TABLE