コード例 #1
0
    def __init__(self, name=None, is_running=False, open_new=False):
        """
		If @is_running, style as if the app is running (Show application)
		If @open_new, always start a new instance.
		"""
        if not name:
            name = _("Launch")
        Action.__init__(self, name)
        self.is_running = is_running
        self.open_new = open_new
コード例 #2
0
ファイル: objects.py プロジェクト: CharString/kupfer
	def __init__(self, name=None, is_running=False, open_new=False):
		"""
		If @is_running, style as if the app is running (Show application)
		If @open_new, always start a new instance.
		"""
		if not name:
			name = _("Launch")
		Action.__init__(self, name)
		self.is_running = is_running
		self.open_new = open_new
コード例 #3
0
ファイル: fileactions.py プロジェクト: chmouel/kupfer
	def __init__(self, desktop_item, is_default=False):
		"""
		Construct an "Open with application" item:

		Application of @name should open, if
		@is_default, it means it is the default app and
		should only be styled "Open"
		"""
		if not desktop_item:
			raise InvalidDataError

		name = desktop_item.get_name()
		action_name = _("Open") if is_default else _("Open with %s") % name
		Action.__init__(self, action_name)
		self.desktop_item = desktop_item
		self.is_default = is_default

		# add a name alias from the package name of the application
		if is_default:
			self.rank_adjust = 5
			self.name_aliases.add(_("Open with %s") % name)
		package_name, ext = os.path.splitext(self.desktop_item.get_id() or "")
		if package_name:
			self.name_aliases.add(_("Open with %s") % package_name)
コード例 #4
0
 def __init__(self):
     Action.__init__(self, _("Sign and Encrypt For..."))
コード例 #5
0
 def __init__(self, leaf=None, retry = 0):
     Action.__init__(self, _("Restart aplication"))
     self.retry = retry
     if leaf != None:
         self.activate(leaf)
コード例 #6
0
	def __init__(self):
		Action.__init__(self, _("Export Public Key"))
コード例 #7
0
ファイル: objects.py プロジェクト: CharString/kupfer
	def __init__(self):
		Action.__init__(self, _("Close"))
コード例 #8
0
ファイル: gtg.py プロジェクト: CharString/kupfer
	def __init__(self):
		Action.__init__(self, _("Dismiss"))
コード例 #9
0
	def __init__(self):
		name = _("Sign By...") if __kupfer_settings__['ask_for_key'] \
				else _("Sign")
		Action.__init__(self, name)
コード例 #10
0
ファイル: debug.py プロジェクト: jchtt/kupfer-adds
	def __init__(self):
		Action.__init__(self, u"Forget")
コード例 #11
0
	def __init__(self):
		Action.__init__(self, _("Decrypt"))
コード例 #12
0
	def __init__(self):
		Action.__init__(self, _("Encrypt With Symmetric Cipher"))
コード例 #13
0
	def __init__(self):
		Action.__init__(self, _("Verify Signature"))
コード例 #14
0
 def __init__(self):
     Action.__init__(self, _("Show shortcut"))
コード例 #15
0
 def __init__(self):
     Action.__init__(self, _("Execute shortcuts"))
コード例 #16
0
 def __init__(self):
     Action.__init__(self, _("Decrypt"))
コード例 #17
0
	def __init__(self):
		Action.__init__(self, _("Encrypt For..."))
コード例 #18
0
 def __init__(self):
     name = _("Sign By...") if __kupfer_settings__['ask_for_key'] \
       else _("Sign")
     Action.__init__(self, name)
コード例 #19
0
ファイル: filezilla.py プロジェクト: CharString/kupfer
	def __init__(self):
		Action.__init__(self, _("Open Site with Filezilla"))
コード例 #20
0
ファイル: debug.py プロジェクト: jchtt/kupfer-adds
	def __init__(self):
		Action.__init__(self, u"Debug Info")
コード例 #21
0
 def __init__(self, leaf=None, retry=0):
     Action.__init__(self, _("Restart aplication"))
     self.retry = retry
     if leaf != None:
         self.activate(leaf)
コード例 #22
0
ファイル: gtg.py プロジェクト: CharString/kupfer
	def __init__(self):
		Action.__init__(self, _("Delete"))
コード例 #23
0
ファイル: gtg.py プロジェクト: jablan/kupfer
 def __init__(self):
     Action.__init__(self, _("Dismiss"))
コード例 #24
0
 def __init__(self):
     Action.__init__(self, _("Execute shortcuts"))
コード例 #25
0
ファイル: filezilla.py プロジェクト: jchtt/kupfer-adds
 def __init__(self):
     Action.__init__(self, _("Open Site with Filezilla"))
コード例 #26
0
ファイル: gtg.py プロジェクト: jablan/kupfer
 def __init__(self):
     Action.__init__(self, _("Mark Done"))
コード例 #27
0
	def __init__(self):
		Action.__init__(self, _("Edit Key"))
コード例 #28
0
ファイル: gtg.py プロジェクト: jablan/kupfer
 def __init__(self):
     Action.__init__(self, _("Create Task"))
コード例 #29
0
 def __init__(self):
     Action.__init__(self, _("Close"))
コード例 #30
0
ファイル: objects.py プロジェクト: cjparsons74/kupfer
	def get_icon_name(self):
		if self.is_running:
			return "go-jump"
		return Action.get_icon_name(self)
コード例 #31
0
 def __init__(self):
     Action.__init__(self, _("Run after Delay..."))
コード例 #32
0
ファイル: fileactions.py プロジェクト: teotikalki/kupfer
 def __init__(self, name=_("Open")):
     Action.__init__(self, name)
コード例 #33
0
ファイル: compose.py プロジェクト: engla/kupfer
 def __init__(self):
     Action.__init__(self, _("Run after Delay..."))
コード例 #34
0
 def __init__(self):
     Action.__init__(self, _("Verify Signature"))
コード例 #35
0
	def __init__(self):
		Action.__init__(self, _('Get Url to the File'))
		self._dropbox_public = _get_dropbox_subdir('Public')
コード例 #36
0
 def __init__(self):
     Action.__init__(self, _("Encrypt With Symmetric Cipher"))
コード例 #37
0
	def __init__(self):
		Action.__init__(self, _('Create Link In Public and Get Url'))
		self._dropbox_public = _get_dropbox_subdir('Public')
コード例 #38
0
 def __init__(self):
     Action.__init__(self, _("Encrypt For..."))
コード例 #39
0
ファイル: triggers.py プロジェクト: spiritedflow/kupfer
	def __init__(self):
		Action.__init__(self, _("Add Trigger..."))
コード例 #40
0
ファイル: debug.py プロジェクト: jchtt/kupfer-adds
	def __init__(self, action):
		Action.__init__(self, u"Apply To...")
		self.action = action
コード例 #41
0
ファイル: triggers.py プロジェクト: spiritedflow/kupfer
	def __init__(self):
		Action.__init__(self, _("Remove Trigger"))
コード例 #42
0
ファイル: objects.py プロジェクト: spiritedflow/kupfer
	def get_icon_name(self):
		if self.is_running:
			return "gtk-jump-to-ltr"
		return Action.get_icon_name(self)
コード例 #43
0
 def __init__(self):
     Action.__init__(self, _("Import Public Key"))
コード例 #44
0
ファイル: gtg.py プロジェクト: CharString/kupfer
	def __init__(self):
		Action.__init__(self, _("Open"))
コード例 #45
0
 def __init__(self):
     Action.__init__(self, _("Search Key on KeyServer"))
コード例 #46
0
ファイル: gtg.py プロジェクト: CharString/kupfer
	def __init__(self):
		Action.__init__(self, _("Mark Done"))
コード例 #47
0
ファイル: gtg.py プロジェクト: jablan/kupfer
 def __init__(self):
     Action.__init__(self, _("Open"))
コード例 #48
0
ファイル: gtg.py プロジェクト: CharString/kupfer
	def __init__(self):
		Action.__init__(self, _("Create Task"))
コード例 #49
0
ファイル: gtg.py プロジェクト: jablan/kupfer
 def __init__(self):
     Action.__init__(self, _("Delete"))
コード例 #50
0
 def __init__(self):
     Action.__init__(self, _("Show shortcut"))
コード例 #51
0
 def __init__(self):
     Action.__init__(self, _("Search Key on KeyServer"))