Example #1
0
  def __init__(self, mieru, GTK=True):
    BasePlatform.__init__(self)

    self.mieru = mieru
    self.GTK = GTK
    if GTK:
      window = self.mieru.gui.getWindow()

      # enable zoom/volume keys for usage by mieru
      self.enableZoomKeys(window)

      # enable rotation
      self.rotationObject = self._startAutorotation()

      # add application menu
      menu = hildon.AppMenu()
      openFolderButton = gtk.Button("Open folder")
      openFolderButton.connect('clicked',self.startChooserCB, "folder")
      openFileButton = gtk.Button("Open file")
      openFileButton.connect('clicked',self.startChooserCB, "file")
      fullscreenButton = gtk.Button("Fullscreen")
      fullscreenButton.connect('clicked',self._toggleFullscreenCB)

      # last open mangas list
      self.historyStore = gtk.ListStore(gobject.TYPE_STRING)
      self.historyLocked = False
      self._updateHistory()
      selector = self._getHistorySelector()
      selector.connect('changed', self._historyRowSelected)
      historyPickerButton = self.getVerticalPickerButton("History")
      historyPickerButton.set_selector(selector)
      self.historyPickerButton = historyPickerButton
      self.mieru.watch('openMangasHistory', self._updateHistoryCB)

      optionsButton = gtk.Button("Options")
      optionsButton.connect('clicked',self._showOptionsCB)

      infoButton = gtk.Button("Info")
      infoButton.connect('clicked',self._showInfoCB)

      pagingButton = gtk.Button("Paging")
      pagingButton.connect('clicked',self.showPagingDialogCB)

      fittPickerButton = self._getFittingPickerButton("Page fitting", arangement=hildon.BUTTON_ARRANGEMENT_VERTICAL)

      menu.append(openFileButton)
      menu.append(openFolderButton)
      menu.append(fullscreenButton)
      menu.append(historyPickerButton)
      menu.append(pagingButton)
      menu.append(fittPickerButton)
      menu.append(optionsButton)
      menu.append(infoButton)

      # Show all menu items
      menu.show_all()

      # Add the menu to the window
      window.set_app_menu(menu)
Example #2
0
 def __init__(self, mieru):
   BasePlatform.__init__(self)
   self.mieru = mieru
Example #3
0
 def __init__(self, panora):
   BasePlatform.__init__(self)
   self.panora = panora
Example #4
0
 def __init__(self, mieru):
     BasePlatform.__init__(self)
     self.mieru = mieru
Example #5
0
File: pc.py Project: M4rtinK/repho
 def __init__(self, repho):
   BasePlatform.__init__(self)
   self.repho = repho
   self.mb = self._addMenu()
Example #6
0
 def __init__(self, repho):
   BasePlatform.__init__(self)
   self.repho = repho
Example #7
0
    def __init__(self, mieru, GTK=False):
        BasePlatform.__init__(self)

        self.mieru = mieru
        self.GTK = GTK
Example #8
0
  def __init__(self, mieru, GTK=False):
    BasePlatform.__init__(self)

    self.mieru = mieru
    self.GTK = GTK
Example #9
0
 def __init__(self, panora):
     BasePlatform.__init__(self)
     self.panora = panora