Subversion Repositories basico

Compare Revisions

Regard whitespace Rev 391 → Rev 392

/branches/BR-0.4/basico/core/mod_win.py
257,7 → 257,7
paned.set_position(0)
 
# Paned
## left pane
## left pane (empty)
paned.add1(Gtk.Box())
 
## Right pane
264,6 → 264,26
box = Gtk.VBox()
box.set_hexpand(True)
 
stack_main = self.setup_main_stack()
box.pack_start(stack_main, True, True, 0)
 
 
paned.add2(box)
mainbox.pack_start(paned, True, True, 0)
 
# Statusbar
statusbar = self.srvgui.add_widget('widget_statusbar', Statusbar(self.controller))
mainbox.pack_start(statusbar, False, False, 0)
 
# Connect signals for visor annotations
visor_annotations = self.srvgui.get_widget('visor_annotations')
visor_annotations.connect_menuview_signals()
visor_annotations.set_active_categories()
self.add(mainbox)
self.show_all()
 
 
def setup_main_stack(self):
# Main Stack (Visors / Settings / Help)
stack_switcher = self.srvgui.add_widget('gtk_stack_switcher_main', Gtk.StackSwitcher())
lhbox = self.srvgui.get_widget('gtk_hbox_hb_left')
275,20 → 295,20
# ~ stack_main.connect('notify::visible-child', self.stack_changed)
stack_main.set_transition_type(Gtk.StackTransitionType.SLIDE_LEFT_RIGHT)
stack_main.set_transition_duration(250)
box.pack_start(stack_main, True, True, 0)
 
 
### Visor stack child
stack_child = self.setup_stack_visor()
stack_child = self.setup_stack_visors()
stack_main.add_titled(stack_child, "dashboard", "Dashboard")
stack_main.child_set_property (stack_child, "icon-name", "basico-dashboard")
 
### Settings stack child
stack_child = self.setup_stack_settings()
stack_child = self.setup_main_stack_settings()
stack_main.add_titled(stack_child, "settings", "Basico Settings")
stack_main.child_set_property (stack_child, "icon-name", "basico-settings")
 
### Help stack child
stack_child = self.setup_stack_settings()
stack_child = self.setup_main_stack_settings()
stack_main.add_titled(stack_child, "help", "Basico Help")
stack_main.child_set_property (stack_child, "icon-name", "basico-help")
 
300,28 → 320,10
# ~ stack_child = self.setup_stack_log()
# ~ stack_main.add_titled(stack_child, "log", "Event Viewer")
 
return stack_main
 
 
 
## Annotation widget stack child
# ~ stack_child = self.srvgui.add_widget('widget_annotation', AnnotationWidget(self.controller))
# ~ stack_main.add_titled(stack_child, "annotations", "Annotation widget")
 
paned.add2(box)
mainbox.pack_start(paned, True, True, 0)
 
# Statusbar
statusbar = self.srvgui.add_widget('widget_statusbar', Statusbar(self.controller))
mainbox.pack_start(statusbar, False, False, 0)
 
visor_annotations = self.srvgui.get_widget('visor_annotations')
visor_annotations.connect_menuview_signals()
visor_annotations.set_active_categories()
self.add(mainbox)
self.show_all()
 
 
def setup_stack_visor(self):
def setup_stack_visors(self):
box = Gtk.VBox()
box.set_hexpand(True)
 
345,17 → 347,17
box.pack_start(stack_visors, True, True, 0)
 
#### Stack for Visor SAP Notes
stack_child = self.setup_tab_sapnote_visor()
stack_child = self.setup_stack_visor_sapnotes()
stack_visors.add_titled(stack_child, "visor-sapnotes", "SAP Notes")
stack_visors.child_set_property (stack_child, "icon-name", "basico-sapnote")
 
#### Stack for Visor Annotations
stack_child = self.setup_tab_annotations_visor()
stack_child = self.setup_stack_visor_annotations()
stack_visors.add_titled(stack_child, "visor-annotations", "Annotations")
stack_visors.child_set_property (stack_child, "icon-name", "basico-filter")
 
#### Stack for Visor Annotations
stack_child = self.setup_tab_attachments_visor()
stack_child = self.setup_stack_visor_attachments()
stack_visors.add_titled(stack_child, "visor-attachments", "Attachments")
stack_visors.child_set_property (stack_child, "icon-name", "basico-attachment")
 
375,7 → 377,7
# ~ return box
 
 
def setup_tab_sapnote_visor(self):
def setup_stack_visor_sapnotes(self):
box = Gtk.VBox()
box.set_hexpand(True)
 
397,7 → 399,7
return box
 
 
def setup_tab_annotations_visor(self):
def setup_stack_visor_annotations(self):
box = Gtk.VBox()
box.set_hexpand(True)
 
435,7 → 437,7
return box
 
 
def setup_tab_attachments_visor(self):
def setup_stack_visor_attachments(self):
box = Gtk.VBox()
box.set_hexpand(True)
 
457,12 → 459,7
return box
 
 
def setup_tab_menuview_annotations_preview(self):
vbox_main = Gtk.VBox()
return vbox_main
 
 
def setup_stack_about(self):
def setup_main_stack_about(self):
box = Gtk.VBox()
box.set_hexpand(True)
about = self.srvgui.add_widget('widget_about', About(self.controller))
471,7 → 468,7
return box
 
 
def setup_stack_settings(self):
def setup_main_stack_settings(self):
box = Gtk.VBox()
box.set_hexpand(True)
settings = self.srvgui.add_widget('widget_settings', SettingsView(self.controller))
480,7 → 477,7
return box
 
 
def setup_stack_log(self):
def setup_main_stack_log(self):
box = Gtk.VBox()
box.set_hexpand(True)
logviewer = self.srvgui.add_widget('widget_logviewer', LogViewer(self.controller))
488,7 → 485,7
box.show_all()
return box
 
def setup_stack_help(self):
def setup_main_stack_help(self):
box = Gtk.VBox()
box.set_hexpand(True)
browser = BasicoBrowser()