Changeset 1049
- Timestamp:
- 07/18/07 14:43:57 (6 years ago)
- Location:
- branch/k0p/umitInterfaceEditor
- Files:
-
- 4 modified
-
Changelog (modified) (1 diff)
-
OptionManager.py (modified) (2 diffs)
-
Profile.py (modified) (2 diffs)
-
umitInterfaceEditor.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branch/k0p/umitInterfaceEditor/Changelog
r1047 r1049 1 1 # Umit Interface Editor v0.1 Changelog 2 2 # 3 4 18:07:2007: 5 #OptionList 6 - Fix columns 7 8 9 17:07:2007: 10 #Profile Manager 11 - Fix Coloumns : bug gerate by viewport of ScrolledWindow 12 - Begin tests about drag-n-drop 13 3 14 4 15 -
branch/k0p/umitInterfaceEditor/OptionManager.py
r1048 r1049 240 240 @rtype: class Option 241 241 ''' 242 243 242 244 243 name = self.name_entry.get_text() 245 244 hint = self.hint_entry.get_text() … … 336 335 self.__model = gtk.TreeStore(gobject.TYPE_STRING) 337 336 self.__treeview = gtk.TreeView(self.__model) 338 self.__treeview.set_headers_visible( False)337 self.__treeview.set_headers_visible(True) 339 338 renderer = gtk.CellRendererText() 340 column = gtk.TreeViewColumn(" Option List", renderer, text=0)339 column = gtk.TreeViewColumn("Name", renderer, text=0) 341 340 self.__treeview.append_column(column) 342 341 self.options = ListOptions(options) 343 self.__scrolledwindow = HIGScrolledWindow() 344 hbox = HIGHBox() 345 hbox.pack_start(self.__treeview, True, True) 342 self.__scrolledwindow = HIGScrolledWindow() 346 343 self.__scrolledwindow.set_policy(gtk.POLICY_AUTOMATIC, 347 344 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) 355 349 self.optiondisplay = optiondisplay 356 350 -
branch/k0p/umitInterfaceEditor/Profile.py
r1048 r1049 1 1 import gtk 2 3 import sys 4 sys.path.append("selectborder") 2 5 from WidgetsPlace import EditArea 6 from higwidgets.higscrollers import HIGScrolledWindow 7 from higwidgets.hignotebooks import HIGNotebook 8 9 10 self.profile_ea = EditArea() 11 self.profile_box.pack_start(self.profile_ea, True, True) 12 13 14 self.profile_sw = gtk.ScrolledWindow() 15 self.profile_box = HIGVBox() 16 17 18 self.profile_ea = EditArea(15) 19 self.profile_box.pack_start(self.profile_ea, True, True) 20 21 22 class NotebookEditable(HIGNotebook): 23 ''' 24 Editable Notebook to Edit Profile Editor 25 ''' 26 def __init__(self): 27 HIGNotebook.__init__(self) 28 3 29 4 30 … … 6 32 def __init__(self): 7 33 gtk.VBox.__init__(self) 34 35 36 #MAIN SCROLLED 37 self._scroolledmain = HIGScrolledWindow 38 #NOTEBOOKEDITABLE : 39 self. 40 8 41 self._edit_area = EditArea() 42 9 43 10 44 def create_events(self): 11 45 #.... 46 pass 47 12 48 -
branch/k0p/umitInterfaceEditor/umitInterfaceEditor.py
r1041 r1049 50 50 51 51 52 from Tools import ToolDesign 53 54 52 55 class umitInterfaceEditor(HIGMainWindow): 53 56 def __init__(self): … … 80 83 from WidgetsPlace import EditArea 81 84 82 self.profile_ea = EditArea( )85 self.profile_ea = EditArea(15) 83 86 self.profile_box.pack_start(self.profile_ea, True, True) 84 87 def __create_widgets(self): … … 113 116 self.edit_mode_exp = gtk.Expander(_('Edit Modes')) 114 117 self.edit_mode_box = self.create_edit_mode() 115 118 119 116 120 self.list_options_box = OptionList() 121 self.notebook = HIGNotebook() 122 self.notebook.append_page(self.list_options_box, 123 HIGEntryLabel(_('Option List'))) 124 117 125 self.list_options_box.reload() 118 126 … … 152 160 #Frame right 153 161 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) 155 163 156 164 #Status bar … … 199 207 self.edit_mode_opt = "Options" 200 208 self.vbox_left.pack_start(self.display_frame) 201 print "changing options "202 209 elif edit == "Profile" and not self.edit_mode_opt == "Profile": 203 210 # … … 207 214 self.profile_sw.add_with_viewport(self.profile_box) 208 215 self.vbox_left.pack_start(self.profile_sw, True, True) 216 self._create_tooldesign() 209 217 self.profile_sw.show_all() 210 218 self.profile_box.show_all() 211 print "changing profile"212 219 elif edit == "Wizard" and not self.edit_mode_opt == "Wizard": 213 220 # 214 221 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 216 234 217 235 def __optinlist_from_group(self):
