예제 #1
0
 def __init__(self, component_manager):
     SyncDialog.__init__(self, component_manager)
     QtGui.QDialog.__init__(self, self.main_widget())
     self.setupUi(self)
     self.setWindowFlags(self.windowFlags() \
         | QtCore.Qt.WindowMinMaxButtonsHint)
     self.setWindowFlags(self.windowFlags() \
         & ~ QtCore.Qt.WindowContextHelpButtonHint)
     if not self.config()["sync_help_shown"]:
         self.main_widget().show_information(\
            _("Here, you can sync this machine with a remote server. Of course, that remote computer needs to have a server running, which can be started from the configuration screen on that remote machine.\n\nHowever, if you want to sync a mobile device with this machine here, you shouldn't use the menu option you just selected. In that case, this computer needs to be the server. So, first enable a sync server here, and then start the sync from the mobile device."))
         self.config()["sync_help_shown"] = True
     self.server.setText(self.config()["server_for_sync_as_client"])
     self.port.setValue(self.config()["port_for_sync_as_client"])
     self.username.setText(self.config()["username_for_sync_as_client"])
     self.password.setText(self.config()["password_for_sync_as_client"])
     self.check_for_edited_local_media_files.setChecked(\
         self.config()["check_for_edited_local_media_files"])
     if self.config()["server_for_sync_as_client"]:
         self.ok_button.setFocus()
     self.can_reject = True
     # Since we will overwrite the true main widget in the thread, we need
     # to save it here.
     self.true_main_widget = self.main_widget()
예제 #2
0
 def __init__(self, component_manager):
     SyncDialog.__init__(self, component_manager)
     QtGui.QDialog.__init__(self, self.main_widget())
     self.setupUi(self)
     self.setWindowFlags(self.windowFlags() \
         | QtCore.Qt.WindowMinMaxButtonsHint)
     self.setWindowFlags(self.windowFlags() \
         & ~ QtCore.Qt.WindowContextHelpButtonHint)
     if not self.config()["sync_help_shown"]:
         self.main_widget().show_information(\
            _("Here, you can sync this machine with a remote server. Of course, that remote computer needs to have a server running, which can be started from the configuration screen on that remote machine.\n\nHowever, if you want to sync a mobile device with this machine here, you shouldn't use the menu option you just selected. In that case, this computer needs to be the server. So, first enable a sync server here, and then start the sync from the mobile device."))
         self.config()["sync_help_shown"] = True
     self.server.setText(self.config()["server_for_sync_as_client"])
     self.port.setValue(self.config()["port_for_sync_as_client"])
     self.username.setText(self.config()["username_for_sync_as_client"])
     self.password.setText(self.config()["password_for_sync_as_client"])
     self.check_for_edited_local_media_files.setChecked(\
         self.config()["check_for_edited_local_media_files"])
     if self.config()["server_for_sync_as_client"]:
         self.ok_button.setFocus()
     self.can_reject = True
     # Since we will overwrite the true main widget in the thread, we need
     # to save it here.
     self.true_main_widget = self.main_widget()
예제 #3
0
 def __init__(self, component_manager):
     SyncDialog.__init__(self, component_manager)
예제 #4
0
 def activate(self):
     SyncDialog.activate(self)
     self.component_manager.android.showSyncDialog()
예제 #5
0
 def activate(self):
     SyncDialog.activate(self)
     _dialogs.sync_dlg_activate()
예제 #6
0
 def __init__(self, component_manager):
     SyncDialog.__init__(self, component_manager)