Beispiel #1
0
	def __init__(self, editor):
		ImageMenuItem.__init__(self, _("S_paces"))
		self.__init_attributes(editor)
		self.__set_properties()
		self.__sigid1 = self.__menuitem1.connect("activate", self.__activate_cb)
		self.__sigid2 = self.__menuitem2.connect("activate", self.__activate_cb)
		self.__sigid3 = self.__menuitem3.connect("activate", self.__activate_cb)
		self.__sigid4 = self.__view.connect("focus-in-event", self.__destroy_cb)
Beispiel #2
0
	def __init__(self, editor):
		ImageMenuItem.__init__(self, _("Paragraph"))
		self.__init_attributes(editor)
		self.__set_properties()
		self.__sig_id_1 = self.__next_item.connect("activate", self.__activate_cb)
		self.__sig_id_2 = self.__previous_item.connect("activate", self.__activate_cb)
		self.__sig_id_3 = self.__reflow_item.connect("activate", self.__activate_cb)
		self.__sig_id_4 = editor.textview.connect("focus-in-event", self.__destroy_cb)
		self.__sig_id_5 = self.__select_item.connect("activate", self.__activate_cb)
Beispiel #3
0
 def __init__(self, editor):
     ImageMenuItem.__init__(self, _("In_dentation"))
     self.__init_attributes(editor)
     self.__set_properties()
     self.__sigid1 = self.__menuitem1.connect("activate",
                                              self.__activate_cb)
     self.__sigid2 = self.__menuitem2.connect("activate",
                                              self.__activate_cb)
     self.__sigid3 = self.__textview.connect("focus-in-event",
                                             self.__focus_cb)
Beispiel #4
0
	def __init__(self, editor):
		ImageMenuItem.__init__(self, _("_Case"))
		self.__init_attributes(editor)
		self.__set_properties()
		self.__sigid1 = self.__menuitem1.connect("activate", self.__activate_cb)
		self.__sigid2 = self.__menuitem2.connect("activate", self.__activate_cb)
		self.__sigid3 = self.__menuitem3.connect("activate", self.__activate_cb)
		self.__sigid4 = self.__menuitem1.connect("map-event", self.__map_event_cb)
		self.__sigid5 = self.__menuitem2.connect("map-event", self.__map_event_cb)
		self.__sigid6 = self.__menuitem3.connect("map-event", self.__map_event_cb)
		self.__sigid7 = self.__editor.textview.connect("focus-in-event", self.__focus_cb)
Beispiel #5
0
	def __init__(self, editor):
		ImageMenuItem.__init__(self, _("Selection"))
		self.__init_attributes(editor)
		self.__creates_widgets()
		self.__set_properties()
		self.__signal_id_1 = self.select_word_menuitem.connect("activate", self.__popup_activate_cb)
		self.__signal_id_2 = self.select_line_menuitem.connect("activate", self.__popup_activate_cb)
		self.__signal_id_3 = self.select_sentence_menuitem.connect("activate", self.__popup_activate_cb)
		self.__signal_id_4 = self.paragraph_item.connect("activate", self.__popup_activate_cb)
		self.__signal_id_5 = self.select_word_menuitem.connect("map-event", self.__popup_word_map_event_cb)
		self.__signal_id_6 = self.select_line_menuitem.connect("map-event", self.__popup_line_map_event_cb)
		self.__signal_id_7 = self.select_sentence_menuitem.connect("map-event", self.__popup_sentence_map_event_cb)
		self.__signal_id_9 = self.scribesview.connect("focus-in-event", self.__focus_in_event_cb)
Beispiel #6
0
 def __init__(self, editor):
     ImageMenuItem.__init__(self, _("Paragraph"))
     self.__init_attributes(editor)
     self.__set_properties()
     self.__sig_id_1 = self.__next_item.connect("activate",
                                                self.__activate_cb)
     self.__sig_id_2 = self.__previous_item.connect("activate",
                                                    self.__activate_cb)
     self.__sig_id_3 = self.__reflow_item.connect("activate",
                                                  self.__activate_cb)
     self.__sig_id_4 = editor.textview.connect("focus-in-event",
                                               self.__destroy_cb)
     self.__sig_id_5 = self.__select_item.connect("activate",
                                                  self.__activate_cb)
Beispiel #7
0
    def createMenuFile(self):
        menuFile = MenuItem('_File')
        menuFilePop = Menu()

        self.menuNew = ImageMenuItem(STOCK_NEW)
        self.menuOpen = ImageMenuItem(STOCK_OPEN)
        self.menuClose = ImageMenuItem(STOCK_CLOSE)
        self.menuSave = ImageMenuItem(STOCK_SAVE)
        self.menuSaveAs = ImageMenuItem(STOCK_SAVE_AS)
        self.menuConvert = ImageMenuItem(STOCK_CONVERT)
        self.menuQuit = ImageMenuItem(STOCK_QUIT)

        menuFilePop.append(self.menuNew)
        menuFilePop.append(self.menuOpen)
        menuFilePop.append(self.menuClose)
        menuFilePop.append(SeparatorMenuItem())
        menuFilePop.append(self.menuSave)
        menuFilePop.append(self.menuSaveAs)
        menuFilePop.append(self.menuConvert)
        menuFilePop.append(SeparatorMenuItem())
        menuFilePop.append(self.menuQuit)

        menuFile.set_submenu(menuFilePop)

        return menuFile
Beispiel #8
0
 def __init__(self, editor):
     ImageMenuItem.__init__(self, _("_Case"))
     self.__init_attributes(editor)
     self.__set_properties()
     self.__sigid1 = self.__menuitem1.connect("activate",
                                              self.__activate_cb)
     self.__sigid2 = self.__menuitem2.connect("activate",
                                              self.__activate_cb)
     self.__sigid3 = self.__menuitem3.connect("activate",
                                              self.__activate_cb)
     self.__sigid4 = self.__menuitem1.connect("map-event",
                                              self.__map_event_cb)
     self.__sigid5 = self.__menuitem2.connect("map-event",
                                              self.__map_event_cb)
     self.__sigid6 = self.__menuitem3.connect("map-event",
                                              self.__map_event_cb)
     self.__sigid7 = self.__editor.textview.connect("focus-in-event",
                                                    self.__focus_cb)
Beispiel #9
0
    def createMenuHelp(self):
        menuHelp = MenuItem('_Help')
        menuHelpPop = Menu()

        self.menuAbout = ImageMenuItem(STOCK_ABOUT)

        menuHelpPop.append(self.menuAbout)

        menuHelp.set_submenu(menuHelpPop)

        return menuHelp
Beispiel #10
0
 def __init__(self, editor):
     ImageMenuItem.__init__(self, _("Selection"))
     self.__init_attributes(editor)
     self.__creates_widgets()
     self.__set_properties()
     self.__signal_id_1 = self.select_word_menuitem.connect(
         "activate", self.__popup_activate_cb)
     self.__signal_id_2 = self.select_line_menuitem.connect(
         "activate", self.__popup_activate_cb)
     self.__signal_id_3 = self.select_sentence_menuitem.connect(
         "activate", self.__popup_activate_cb)
     self.__signal_id_4 = self.paragraph_item.connect(
         "activate", self.__popup_activate_cb)
     self.__signal_id_5 = self.select_word_menuitem.connect(
         "map-event", self.__popup_word_map_event_cb)
     self.__signal_id_6 = self.select_line_menuitem.connect(
         "map-event", self.__popup_line_map_event_cb)
     self.__signal_id_7 = self.select_sentence_menuitem.connect(
         "map-event", self.__popup_sentence_map_event_cb)
     self.__signal_id_9 = self.scribesview.connect("focus-in-event",
                                                   self.__focus_in_event_cb)
Beispiel #11
0
 def __init__(self, editor):
     from gtk import STOCK_ABOUT
     ImageMenuItem.__init__(self, STOCK_ABOUT)
     self.__init_attributes(editor)
     self.set_property("name", "AboutMenuitem")
     self.__sigid1 = self.connect("activate", self.__activate_cb)