def __init__(self, title=_('Bug Report'), summary=None, description=None,
                 category=None, crashreport=False, description_dialog=None,
                 reuse_mainloop=True):
        HIGDialog.__init__(self, title=title,
            buttons=(gtk.STOCK_OK, gtk.RESPONSE_ACCEPT,
                gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL))

        # If reuse_mainloop is true, then dialogs created inside this dialog
        # will not start another mainloop.
        self._reuse_mainloop = reuse_mainloop

        self.set_position(gtk.WIN_POS_CENTER_ALWAYS)

        self.crashreport = crashreport
        self.description_dialog = description_dialog
        self._create_widgets()
        self._set_category_list()
        self._pack_widgets()
        self._connect_widgets()
        self.summary = summary or ''
        self.description_report = description
        if self.crashreport:
            self.description = _("CrashReport automatically created")
        else:
            if self.description_dialog is None:
                self.description = description or ''
            else:
                self.description = description_dialog or ''
        self.category = category or ''
 def __init__(self, type_ = None, path = None):
     if type_ and path:
         title = _("Edit Source")
     else:
         type_ = "FILE"
         path = ""
         title = _("Add Source")
     HIGDialog.__init__(self, title, None,
                        gtk.DIALOG_MODAL,
                        (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
                         gtk.STOCK_OK, gtk.RESPONSE_OK))
     hbox = HIGHBox()
     self.combo = gtk.combo_box_new_text()
     types = sorted(self.types.keys())
     for t in types:
         self.combo.append_text(t)
     self.combo.set_active(types.index(type_))
     self.combo.connect("changed", self._changed_cb)
     hbox.pack_start(self.combo, False, False)
     self.entry = HIGTextEntry()
     self.entry.set_text(path)
     hbox.pack_start(self.entry)
     self.btn = HIGButton(_("Browse..."), stock=gtk.STOCK_OPEN)
     self.btn.connect("clicked", self._clicked_cb)
     hbox.pack_start(self.btn, False, False)
     self.vbox.add(hbox)
     self.show_all()
     self.update()
Exemple #3
0
 def __init__(self, option, restructfiles, profile, wizard):
     HIGDialog.__init__(self, _('Dependence of Option ') + option)
     self.set_size_request(-1, 300)
     self.restructfiles = restructfiles
     self._profile = profile
     self._wizard = wizard
     self._draw_widgets()
     self.show_all()
 def __init__(self, option, restructfiles, profile, wizard):
     HIGDialog.__init__(self, _('Dependence of Option ') + option )
     self.set_size_request(-1,300)
     self.restructfiles = restructfiles
     self._profile = profile
     self._wizard = wizard
     self._draw_widgets()
     self.show_all()
    def __init__(self, colors):
        # Shows colors and chars legend
        HIGDialog.__init__(self, title=_('Color Descriptions'),
                          buttons=(gtk.STOCK_OK, gtk.RESPONSE_ACCEPT))

        self.colors = colors
        self._create_widgets()
        self._pack_widgets()
        self._connect_widgets()
Exemple #6
0
    def __init__(self, colors):
        # Shows colors and chars legend
        HIGDialog.__init__(self,
                           title=_('Color Descriptions'),
                           buttons=(gtk.STOCK_OK, gtk.RESPONSE_ACCEPT))

        self.colors = colors
        self._create_widgets()
        self._pack_widgets()
        self._connect_widgets()
    def __init__(self, text):
        HIGDialog.__init__(self, _('Profile\'s Name'))

        dialog_label = HIGDialogLabel(text)
        dialog_label.show()
        self.vbox.pack_start(dialog_label)
        self.entry_text = HIGTextEntry()
        self.entry_text.show()
        self.vbox.pack_start(self.entry_text)
        self.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)
        self.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK)
    def __init__(self, nmap_output_view):
        HIGDialog.__init__(self, _("Nmap Output Properties"),
                           buttons=(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE))
        
        self.nmap_highlight = NmapOutputHighlight()

        self.__create_widgets()
        self.__pack_widgets()
        self.highlight_tab()

        self.vbox.show_all()
    def __init__(self, text):
        HIGDialog.__init__(self, _('Profile\'s Name'))

        dialog_label = HIGDialogLabel(text)
        dialog_label.show()
        self.vbox.pack_start(dialog_label)
        self.entry_text = HIGTextEntry()
        self.entry_text.show()
        self.vbox.pack_start(self.entry_text)
        self.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)
        self.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK)
 def __init__(self, parent = None):
     HIGDialog.__init__(self, _("Find"), parent,
                        gtk.DIALOG_MODAL | gtk.DIALOG_NO_SEPARATOR,
                        (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
                         gtk.STOCK_FIND, gtk.RESPONSE_OK))
     self.set_default_response(gtk.RESPONSE_OK)
     hbox = HIGHBox()
     hbox.pack_start(gtk.Label(_("Search:")))
     self.entry = HIGTextEntry()
     self.entry.set_activates_default(True)
     hbox.pack_start(self.entry)
     self.vbox.add(hbox)
     self.show_all()
    def __init__(self, title=_('Registration')):
        """Constructor"""
        HIGDialog.__init__(self, title=title,
                           buttons=(gtk.STOCK_OK, gtk.RESPONSE_ACCEPT,
                                    gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL))

        self.set_position(gtk.WIN_POS_CENTER_ALWAYS)
        
        self._create_widgets()
        self._pack_widgets()

        # Register callbacks
        self.connect("response", self.check_response)
    def __init__(self, title=_('Registration')):
        """Constructor"""
        HIGDialog.__init__(self,
                           title=title,
                           buttons=(gtk.STOCK_OK, gtk.RESPONSE_ACCEPT,
                                    gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL))

        self.set_position(gtk.WIN_POS_CENTER_ALWAYS)

        self._create_widgets()
        self._pack_widgets()

        # Register callbacks
        self.connect("response", self.check_response)
    def __init__(self, parent):
        HIGDialog.__init__(self, _("Script Manager Preferences"), parent,
                           gtk.DIALOG_MODAL,
                           (gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE,
                            gtk.STOCK_HELP, gtk.RESPONSE_HELP))
        self.config = parent.config
        self.preferences = parent.preferences
        self.set_size_request(450, 400)
	self.tab_catalog = self.create_tab_catalog()
	self.tab_editor = self.create_tab_editor()
	self.tab_columns = self.create_tab_columns()
	self.tab_network = self.create_tab_network()
        self.create_widgets()
        self.connect("destroy", self.update_preferences)
Exemple #14
0
    def __init__(self, title=_('Open Monitor 2012')):
        """Constructor"""
        HIGDialog.__init__(self, title=title, flags=gtk.DIALOG_MODAL,
                           buttons=(gtk.STOCK_OK, gtk.RESPONSE_ACCEPT))

        self.set_position(gtk.WIN_POS_CENTER_ALWAYS)
        self.set_default_response(gtk.RESPONSE_ACCEPT)
        self.set_keep_above(True)
        self.set_size_request(480, 240)
        self.set_border_width(2)

        self._create_widgets()
        self._pack_widgets()
        self._connect_widgets()
 def __init__(self, selected = ''):
     HIGDialog.__init__(self, _("Select Necessory Scripts"), None,
                        gtk.DIALOG_MODAL,
                        (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
                         gtk.STOCK_OK, gtk.RESPONSE_OK,
                         gtk.STOCK_HELP, gtk.RESPONSE_HELP))
     self.config = ScriptConfig()
     self.config.load()
     self.base = ScriptBase(self.config)
     self.base.load()
     self.selection = ScriptSelection(self.base)
     self.selection.set_selected(selected)
     self.set_size_request(400, 400)
     self.create_widgets()
    def __init__(self, reporter, summary, description, comments, category):
        HIGDialog.__init__(self,
                           title='Details of Crash Report',
                           buttons=(gtk.STOCK_OK, gtk.RESPONSE_ACCEPT))
        # Save information about Bug Report
        self._reporter = reporter
        self._summary = summary
        self._description = description
        self._comments = comments
        self._category = category

        # Widgets matter
        self.set_position(gtk.WIN_POS_CENTER_ALWAYS)
        self._create_widgets()
        self._pack_widgets()
    def __init__(self, start_value):
        HIGDialog.__init__(self, title=_("Refresh Time"),
            buttons=(gtk.STOCK_OK, gtk.RESPONSE_OK,
                gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL))

        lbl = gtk.Label(_("Minutes"))
        self.spinbtn = gtk.SpinButton(gtk.Adjustment(value=start_value,
            lower=1, upper=10000, step_incr=1), 1)

        hbox = gtk.HBox()
        hbox.add(lbl)
        hbox.add(self.spinbtn)

        self.vbox.pack_start(hbox)
        self.show_all()
Exemple #18
0
 def __init__(self, reporter, summary, description, 
              comments, category):
     HIGDialog.__init__(self,
                        title='Details of Crash Report',
                        buttons=(gtk.STOCK_OK, gtk.RESPONSE_ACCEPT)
                        )
     # Save information about Bug Report
     self._reporter = reporter
     self._summary = summary
     self._description = description
     self._comments = comments
     self._category = category
     
     # Widgets matter
     self.set_position(gtk.WIN_POS_CENTER_ALWAYS)
     self._create_widgets()
     self._pack_widgets()
Exemple #19
0
    def __init__(self, start_value):
        HIGDialog.__init__(self,
                           title=_("Refresh Time"),
                           buttons=(gtk.STOCK_OK, gtk.RESPONSE_OK,
                                    gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL))

        lbl = gtk.Label(_("Minutes"))
        self.spinbtn = gtk.SpinButton(
            gtk.Adjustment(value=start_value,
                           lower=1,
                           upper=10000,
                           step_incr=1), 1)

        hbox = gtk.HBox()
        hbox.add(lbl)
        hbox.add(self.spinbtn)

        self.vbox.pack_start(hbox)
        self.show_all()