Exemplo n.º 1
0
	def __init__(self, app, is_new, id=None):
		EditorDialog.__init__(self, app,
			"folder-edit.glade",
			"New Shared Folder" if is_new else "Edit Shared Folder"
			)
		self.id = id
		self.is_new = is_new
Exemplo n.º 2
0
 def __init__(self, app, is_new, id=None, path=None):
     EditorDialog.__init__(
         self, app, "folder-edit.glade",
         "New Shared Folder" if is_new else "Edit Shared Folder")
     self.id = id
     self.path = path
     self.is_new = is_new
Exemplo n.º 3
0
	def __init__(self, app, is_new, id=None):
		EditorDialog.__init__(self, app,
			"device-edit.glade",
			"New Device" if is_new else "Edit Device"
			)
		self.id = id
		self.is_new = is_new
Exemplo n.º 4
0
	def __init__(self, app):
		EditorDialog.__init__(self, app, "find-daemon.glade",
			_("Can't invoke the daemon"))
		self.app = app
		exe = "syncthing.exe" if IS_WINDOWS else _("Syncthing binary")
		self["lblMessage"].set_markup("%s\n%s" % (
			_("Syncthing daemon binary cannot be found."),
			_("If you have Syncthing installed, please, set path to "
			  "%s bellow or click on <b>Download</b> "
			  "button to download latest Syncthing package.") % (exe,)
		))
Exemplo n.º 5
0
	def __init__(self, app):
		EditorDialog.__init__(self, app, "find-daemon.glade",
			_("Can't invoke the daemon"))
		self.app = app
		exe = "syncthing.exe" if IS_WINDOWS else _("Syncthing binary")
		self["lblMessage"].set_markup("%s\n%s" % (
			_("Syncthing daemon binary cannot be found."),
			_("If you have Syncthing installed, please, set path to "
			  "%s bellow or click on <b>Download</b> "
			  "button to download latest Syncthing package.") % (exe,)
		))
Exemplo n.º 6
0
	def __init__(self, app):
		EditorDialog.__init__(self, app, "find-daemon.glade",
			_("Can't invoke the daemon"))
		self.app = app
		exe = "syncthing.exe" if IS_WINDOWS else _("Syncthing binary")
		self["lblMessage"].set_markup("%s\n%s" % (
			_("Syncthing daemon binary cannot be found."),
			_("If you have Syncthing installed, please, set path to "
			  "%s bellow or click on <b>Download</b> "
			  "button to download latest Syncthing package.") % (exe,)
		))
		if IS_XP or StDownloader is None:
			# Downloading is not offered on XP (github will not talk to it)
			# or if StDownloader module is not packaged
			self["lblMessage"].set_markup("%s\n%s" % (
				_("Syncthing daemon binary cannot be found."),
				_("If you have Syncthing installed, please, set path to "
				  "%s bellow") % (exe,)
			))
			self.hide_download_button()
Exemplo n.º 7
0
 def __init__(self, app):
     EditorDialog.__init__(self, app, "find-daemon.glade",
                           _("Can't invoke the daemon"))
     self.app = app
     exe = "syncthing.exe" if IS_WINDOWS else _("Syncthing binary")
     self["lblMessage"].set_markup(
         "%s\n%s" %
         (_("Syncthing daemon binary cannot be found."),
          _("If you have Syncthing installed, please, set path to "
            "%s below or click on <b>Download</b> "
            "button to download latest Syncthing package.") % (exe, )))
     if IS_XP or StDownloader is None:
         # Downloading is not offered on XP (github will not talk to it)
         # or if StDownloader module is not packaged
         self["lblMessage"].set_markup(
             "%s\n%s" %
             (_("Syncthing daemon binary cannot be found."),
              _("If you have Syncthing installed, please, set path to "
                "%s below") % (exe, )))
         self.hide_download_button()
 def __init__(self, app):
     EditorDialog.__init__(self, app, "ui-settings.glade", _("UI Settings"))
     self.app = app
Exemplo n.º 9
0
	def __init__(self, app):
		EditorDialog.__init__(self, app, "ui-settings.glade",
			_("UI Settings"))
		self.app = app
Exemplo n.º 10
0
	def __init__(self, app):
		EditorDialog.__init__(self, app, "daemon-settings.glade",
			"Syncthing Daemon Settings")
Exemplo n.º 11
0
 def __init__(self, app, is_new, id=None):
     EditorDialog.__init__(self, app, "device-edit.glade",
                           "New Device" if is_new else "Edit Device")
     self.id = id
     self.is_new = is_new
Exemplo n.º 12
0
 def __init__(self, app):
     EditorDialog.__init__(self, app, "daemon-settings.glade",
                           "Syncthing Daemon Settings")