Changeset 878

Show
Ignore:
Timestamp:
06/27/07 08:47:11 (6 years ago)
Author:
kop-labs
Message:

Toolbar

Location:
branch/k0p/umitInterfaceEditor
Files:
1 added
2 modified
1 moved

Legend:

Unmodified
Added
Removed
  • branch/k0p/umitInterfaceEditor/Editor.py

    r875 r878  
    1  
     1#!/usr/bin/env python 
     2# Copyright (C) 2005 Insecure.Com LLC. 
     3# 
     4# Authors:   Luis Antonio Bastiao Silva <luis.kop@gmail.com> 
     5# 
     6# This program is free software; you can redistribute it and/or modify 
     7# it under the terms of the GNU General Public License as published by 
     8# the Free Software Foundation; either version 2 of the License, or 
     9# (at your option) any later version. 
     10# 
     11# This program is distributed in the hope that it will be useful, 
     12# but WITHOUT ANY WARRANTY; without even the implied warranty of 
     13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     14# GNU General Public License for more details. 
     15# 
     16# You should have received a copy of the GNU General Public License 
     17# along with this program; if not, write to the Free Software 
     18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
    219 
    320import gtk 
     
    1431         
    1532        self.frame = gtk.Frame() 
    16  
    17  
    18     """ 
    19     Add a option to draw area 
    20     """ 
    21     def add_option(self, widget): 
     33         
     34        self._pack_expand_fill(self.frame) 
     35        self.__create_draw_area() 
     36         
     37    def __create_draw_area(self): 
     38        #falta 
     39        #codigo 
     40        msg = "error" 
     41         
     42    def add_option(self, widget):      
     43        """ 
     44        Add a option to draw area 
     45        """ 
    2246        assert widget != None 
    2347         
     
    2852     
    2953 
    30     """ Remove option from draw area """ 
    3154     
    32     def remove_option(self, widget): 
     55    def remove_option(self, widget):         
     56        """  
     57        Remove option from draw area  
     58        """ 
    3359        assert widget != None 
    3460        self.remove(widget) 
  • branch/k0p/umitInterfaceEditor/uie.py

    r874 r878  
    11#!/usr/bin/env python 
    2 # Copyright (C) 2007 Adriano Monteiro Marques <py.adriano@gmail.com> 
    3 # 
    4 # Author: Luis Bastiao Silva <luis.kop@gmail.com> 
     2# Copyright (C) 2005 Insecure.Com LLC. 
     3# Authors:  
     4#  Luis Antonio Bastiao Silva <luis.kop@gmail.com> 
    55# 
    66# This program is free software; you can redistribute it and/or modify 
     
    1818# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
    1919 
    20  
    2120import sys 
    22 from ProfileWizardEditor import ProfileWizardEditor 
     21from umitInterfaceEditor import ProfileWizardEditor 
    2322import gtk 
    2423 
  • branch/k0p/umitInterfaceEditor/umitInterfaceEditor.py

    r875 r878  
    191191        Packing widgets of mainly windows  
    192192        """ 
    193          
     193 
    194194        self.add(self.main_vbox) 
     195        self.main_vbox.pack_start(self.toolbar, False, False, 0) 
     196         
     197         
    195198 
    196199        #Pack widgets to main_box 
     
    355358        """ 
    356359         
    357         self.toolbar = gtk.Toolbar() 
     360        self.toolbar = self.ui_manager.get_widget('/toolbar') 
     361        self.main_vbox._pack_noexpand_nofill(self.toolbar) 
    358362     
    359363     
     
    384388             </menu> 
    385389          </menubar> 
     390            <toolbar> 
     391            <toolitem action='Option checkbox'/> 
     392            <toolitem action='Option checkbox icon'/> 
     393            <toolitem action='Option entry'/> 
     394            <toolitem action='Open Scan'/> 
     395            <separator/> 
     396            <toolitem action='Report a bug'/> 
     397            <toolitem action='Show Help'/> 
     398        </toolbar> 
    386399        """ 
    387400