Subversion Repositories basico

Rev

Rev 361 | Rev 364 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 361 Rev 362
Line 437... Line 437...
437
        scr.set_hexpand(True)
437
        scr.set_hexpand(True)
438
        scr.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
438
        scr.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
439
        scr.set_shadow_type(Gtk.ShadowType.NONE)
439
        scr.set_shadow_type(Gtk.ShadowType.NONE)
440
        vwp = Gtk.Viewport()
440
        vwp = Gtk.Viewport()
441
        vwp.set_hexpand(True)
441
        vwp.set_hexpand(True)
442
        visor = self.srvgui.add_widget('visor_sapnotes', SAPNotesVisor(self.controller))
-
 
443
        visor.set_hexpand(True)
-
 
444
        visor.set_vexpand(True)
-
 
445
        vwp.add(visor)
-
 
-
 
442
        visor_sapnotes = self.srvgui.add_widget('visor_sapnotes', SAPNotesVisor(self.controller))
-
 
443
        visor_sapnotes.set_hexpand(True)
-
 
444
        visor_sapnotes.set_vexpand(True)
-
 
445
        vwp.add(visor_sapnotes)
446
        scr.add(vwp)
446
        scr.add(vwp)
447
        box.pack_start(scr, True, True, 0)
447
        box.pack_start(scr, True, True, 0)
448
        visor.show_all()
-
 
-
 
448
        visor_sapnotes.show_all()
449
        box.show_all()
449
        box.show_all()
450
        return box
450
        return box
451
451
452
452
453
    def setup_tab_annotations_visor(self):
453
    def setup_tab_annotations_visor(self):
Line 459... Line 459...
459
        scr.set_hexpand(True)
459
        scr.set_hexpand(True)
460
        scr.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
460
        scr.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
461
        scr.set_shadow_type(Gtk.ShadowType.NONE)
461
        scr.set_shadow_type(Gtk.ShadowType.NONE)
462
        vwp = Gtk.Viewport()
462
        vwp = Gtk.Viewport()
463
        vwp.set_hexpand(True)
463
        vwp.set_hexpand(True)
464
        visor = self.srvgui.add_widget('visor_annotations', AnnotationsVisor(self.controller))
-
 
465
        visor.set_hexpand(True)
-
 
466
        visor.set_vexpand(True)
-
 
467
        vwp.add(visor)
-
 
-
 
464
        visor_annotations = self.srvgui.add_widget('visor_annotations', AnnotationsVisor(self.controller))
-
 
465
        visor_annotations.set_hexpand(True)
-
 
466
        visor_annotations.set_vexpand(True)
-
 
467
        vwp.add(visor_annotations)
468
        scr.add(vwp)
468
        scr.add(vwp)
469
        box.pack_start(scr, True, True, 0)
469
        box.pack_start(scr, True, True, 0)
470
        visor.show_all()
-
 
-
 
470
        visor_annotations.show_all()
471
        box.show_all()
471
        box.show_all()
472
        return box
472
        return box
473
473
474
474
475
    def setup_tab_attachments_visor(self):
475
    def setup_tab_attachments_visor(self):
Line 481... Line 481...
481
        scr.set_hexpand(True)
481
        scr.set_hexpand(True)
482
        scr.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
482
        scr.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
483
        scr.set_shadow_type(Gtk.ShadowType.NONE)
483
        scr.set_shadow_type(Gtk.ShadowType.NONE)
484
        vwp = Gtk.Viewport()
484
        vwp = Gtk.Viewport()
485
        vwp.set_hexpand(True)
485
        vwp.set_hexpand(True)
486
        visor = self.srvgui.add_widget('visor_attachments', AttachmentsVisor(self.controller))
-
 
487
        visor.set_hexpand(True)
-
 
488
        visor.set_vexpand(True)
-
 
489
        vwp.add(visor)
-
 
-
 
486
        visor_attachments = self.srvgui.add_widget('visor_attachments', AttachmentsVisor(self.controller))
-
 
487
        visor_attachments.set_hexpand(True)
-
 
488
        visor_attachments.set_vexpand(True)
-
 
489
        vwp.add(visor_attachments)
490
        scr.add(vwp)
490
        scr.add(vwp)
491
        box.pack_start(scr, True, True, 0)
491
        box.pack_start(scr, True, True, 0)
492
        visor.show_all()
-
 
-
 
492
        visor_attachments.show_all()
493
        box.show_all()
493
        box.show_all()
494
        return box
494
        return box
495
       
495
       
496
496
497
    def setup_tab_menuview_sapnotes(self):
497
    def setup_tab_menuview_sapnotes(self):
Line 725... Line 725...
725
    # ~ def setup_stack_annotation(self):
725
    # ~ def setup_stack_annotation(self):
726
        # ~ return self.srvgui.add_widget('widget_annotation', AnnotationWidget(self.controller)) 
726
        # ~ return self.srvgui.add_widget('widget_annotation', AnnotationWidget(self.controller)) 
727
727
728
728
729
    def run(self):
729
    def run(self):
730
        visor_annotations = self.srvgui.get_widget('visor_annotations')
-
 
-
 
730
        # ~ visor_annotations = self.srvgui.get_widget('visor_annotations')
731
        viewmenu = self.srvgui.get_widget('viewmenu')
731
        viewmenu = self.srvgui.get_widget('viewmenu')
732
        viewmenu.set_view('collection')
732
        viewmenu.set_view('collection')
733
        self.srvclb.gui_show_visor_annotations()
-
 
734
        annotations = self.srvant.search_term('')
-
 
735
        visor_annotations.populate_annotations(annotations)
-
 
-
 
733
        # ~ self.srvclb.gui_show_visor_annotations()
-
 
734
        # ~ annotations = self.srvant.search_term('')
-
 
735
        # ~ visor_annotations.populate(annotations)
736
        self.srvclb.gui_viewmenu_select_first_entry()
736
        self.srvclb.gui_viewmenu_select_first_entry()