Changeset 1049

Show
Ignore:
Timestamp:
07/18/07 14:43:57 (6 years ago)
Author:
kop-labs
Message:

NotebookEditable?

Location:
branch/k0p/umitInterfaceEditor
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branch/k0p/umitInterfaceEditor/Changelog

    r1047 r1049  
    11# Umit Interface Editor v0.1 Changelog 
    22#  
     3 
     418:07:2007: 
     5        #OptionList 
     6        - Fix columns  
     7 
     8 
     917:07:2007: 
     10        #Profile Manager 
     11        - Fix Coloumns : bug gerate by viewport of ScrolledWindow 
     12        - Begin tests about drag-n-drop 
     13 
    314 
    415 
  • branch/k0p/umitInterfaceEditor/OptionManager.py

    r1048 r1049  
    240240        @rtype: class Option 
    241241        ''' 
    242          
    243          
     242 
    244243        name = self.name_entry.get_text() 
    245244        hint = self.hint_entry.get_text() 
     
    336335        self.__model =  gtk.TreeStore(gobject.TYPE_STRING) 
    337336        self.__treeview = gtk.TreeView(self.__model) 
    338         self.__treeview.set_headers_visible(False) 
     337        self.__treeview.set_headers_visible(True) 
    339338        renderer = gtk.CellRendererText()  
    340         column = gtk.TreeViewColumn("Option List", renderer, text=0) 
     339        column = gtk.TreeViewColumn("Name", renderer, text=0) 
    341340        self.__treeview.append_column(column) 
    342341        self.options = ListOptions(options) 
    343         self.__scrolledwindow = HIGScrolledWindow() 
    344         hbox = HIGHBox() 
    345         hbox.pack_start(self.__treeview, True, True) 
     342        self.__scrolledwindow = HIGScrolledWindow() 
    346343        self.__scrolledwindow.set_policy(gtk.POLICY_AUTOMATIC, 
    347344                                         gtk.POLICY_AUTOMATIC) 
    348         self.__scrolledwindow.add_with_viewport(hbox) 
    349         self.notebook = HIGNotebook() 
    350         self.notebook.append_page(self.__scrolledwindow,  
    351                                   HIGEntryLabel(_('Option List'))) 
    352  
    353  
    354         self.pack_start(self.notebook, True, True) 
     345 
     346 
     347        self.pack_start(self.__scrolledwindow, True, True ) 
     348        self.__scrolledwindow.add(self.__treeview) 
    355349        self.optiondisplay = optiondisplay 
    356350         
  • branch/k0p/umitInterfaceEditor/Profile.py

    r1048 r1049  
    11import gtk  
     2 
     3import sys 
     4sys.path.append("selectborder") 
    25from WidgetsPlace import EditArea 
     6from higwidgets.higscrollers import HIGScrolledWindow 
     7from higwidgets.hignotebooks import HIGNotebook 
     8 
     9 
     10self.profile_ea = EditArea() 
     11self.profile_box.pack_start(self.profile_ea, True, True) 
     12 
     13 
     14self.profile_sw = gtk.ScrolledWindow() 
     15self.profile_box = HIGVBox() 
     16 
     17 
     18self.profile_ea = EditArea(15) 
     19self.profile_box.pack_start(self.profile_ea, True, True) 
     20 
     21 
     22class NotebookEditable(HIGNotebook): 
     23    ''' 
     24    Editable Notebook to Edit Profile Editor 
     25    ''' 
     26    def __init__(self): 
     27        HIGNotebook.__init__(self) 
     28         
    329 
    430 
     
    632    def __init__(self): 
    733        gtk.VBox.__init__(self) 
     34 
     35         
     36        #MAIN SCROLLED 
     37        self._scroolledmain = HIGScrolledWindow 
     38        #NOTEBOOKEDITABLE : 
     39        self. 
     40         
    841        self._edit_area = EditArea() 
     42         
    943         
    1044    def create_events(self): 
    1145        #.... 
     46        pass 
     47 
    1248         
  • branch/k0p/umitInterfaceEditor/umitInterfaceEditor.py

    r1041 r1049  
    5050 
    5151 
     52from Tools import ToolDesign 
     53 
     54 
    5255class umitInterfaceEditor(HIGMainWindow): 
    5356    def __init__(self): 
     
    8083        from WidgetsPlace import EditArea 
    8184 
    82         self.profile_ea = EditArea() 
     85        self.profile_ea = EditArea(15) 
    8386        self.profile_box.pack_start(self.profile_ea, True, True) 
    8487    def __create_widgets(self): 
     
    113116        self.edit_mode_exp = gtk.Expander(_('Edit Modes')) 
    114117        self.edit_mode_box = self.create_edit_mode() 
    115          
     118 
     119 
    116120        self.list_options_box = OptionList() 
     121        self.notebook = HIGNotebook() 
     122        self.notebook.append_page(self.list_options_box,  
     123                                  HIGEntryLabel(_('Option List'))) 
     124         
    117125        self.list_options_box.reload() 
    118126 
     
    152160        #Frame right  
    153161        self.vbox_right.pack_start(self.edit_mode_exp, False, False) 
    154         self.vbox_right.pack_end(self.list_options_box, True, True) 
     162        self.vbox_right.pack_end(self.notebook, True, True) 
    155163    
    156164        #Status bar  
     
    199207            self.edit_mode_opt = "Options" 
    200208            self.vbox_left.pack_start(self.display_frame) 
    201             print "changing options " 
    202209        elif edit == "Profile" and not self.edit_mode_opt == "Profile": 
    203210            # 
     
    207214            self.profile_sw.add_with_viewport(self.profile_box) 
    208215            self.vbox_left.pack_start(self.profile_sw, True, True) 
     216            self._create_tooldesign() 
    209217            self.profile_sw.show_all() 
    210218            self.profile_box.show_all() 
    211             print "changing profile" 
    212219        elif edit == "Wizard" and not self.edit_mode_opt == "Wizard": 
    213220            # 
    214221            self.edit_mode_opt="Wizard" 
    215             print "changing wizard" 
     222 
     223 
     224    def _create_tooldesign(self): 
     225        ''' 
     226        create tooldesign that contains widgets to put  
     227        in work area of edit profile 
     228        ''' 
     229        self.tooldesign = ToolDesign() 
     230        self.notebook.append_page(self.tooldesign, HIGSectionLabel(_('Design'))) 
     231        self.notebook.show_all() 
     232         
     233         
    216234 
    217235    def __optinlist_from_group(self):