Example #1
0
        def __init__(self, parent, service):

            ClientGUICommon.StaticBox.__init__(self, parent,
                                               'clientside network')

            self._service = service

            self._my_updater = ClientGUICommon.ThreadToGUIUpdater(
                self, self._Refresh)

            self._address = wx.StaticText(self)
            self._functional = wx.StaticText(self)
            self._bandwidth_summary = wx.StaticText(self)
            self._bandwidth_panel = wx.Panel(self)

            #

            self._Refresh()

            #

            self.AddF(self._address, CC.FLAGS_EXPAND_PERPENDICULAR)
            self.AddF(self._functional, CC.FLAGS_EXPAND_PERPENDICULAR)
            self.AddF(self._bandwidth_summary, CC.FLAGS_EXPAND_PERPENDICULAR)
            self.AddF(self._bandwidth_panel,
                      CC.FLAGS_EXPAND_SIZER_PERPENDICULAR)

            HydrusGlobals.client_controller.sub(self, 'Update',
                                                'service_updated')
Example #2
0
        def __init__(self, parent, service):

            ClientGUICommon.StaticBox.__init__(self, parent,
                                               'serverside hydrus account')

            self._service = service

            self._my_updater = ClientGUICommon.ThreadToGUIUpdater(
                self, self._Refresh)

            self._title_and_expires_st = wx.StaticText(self)
            self._status_st = wx.StaticText(self)
            self._next_sync_st = wx.StaticText(self)
            self._bandwidth_summary = wx.StaticText(self)
            self._bandwidth_panel = wx.Panel(self)

            self._refresh_account_button = ClientGUICommon.BetterButton(
                self, 'refresh account', self._RefreshAccount)
            self._copy_account_key_button = ClientGUICommon.BetterButton(
                self, 'copy account key', self._CopyAccountKey)
            self._permissions_button = ClientGUICommon.MenuButton(
                self, 'see special permissions', [])

            #

            self._Refresh()

            #

            hbox = wx.BoxSizer(wx.HORIZONTAL)

            hbox.AddF(self._refresh_account_button, CC.FLAGS_LONE_BUTTON)
            hbox.AddF(self._copy_account_key_button, CC.FLAGS_LONE_BUTTON)
            hbox.AddF(self._permissions_button, CC.FLAGS_LONE_BUTTON)

            self.AddF(self._title_and_expires_st,
                      CC.FLAGS_EXPAND_PERPENDICULAR)
            self.AddF(self._status_st, CC.FLAGS_EXPAND_PERPENDICULAR)
            self.AddF(self._next_sync_st, CC.FLAGS_EXPAND_PERPENDICULAR)
            self.AddF(self._bandwidth_summary, CC.FLAGS_EXPAND_PERPENDICULAR)
            self.AddF(self._bandwidth_panel,
                      CC.FLAGS_EXPAND_SIZER_PERPENDICULAR)
            self.AddF(hbox, CC.FLAGS_BUTTON_SIZER)

            HydrusGlobals.client_controller.sub(self, 'Update',
                                                'service_updated')
Example #3
0
        def __init__(self, parent, service):

            ClientGUICommon.StaticBox.__init__(self, parent, 'repository sync')

            self._service = service

            self._my_updater = ClientGUICommon.ThreadToGUIUpdater(
                self, self._Refresh)

            self._content_panel = wx.Panel(self)

            self._metadata_st = wx.StaticText(self)

            self._download_progress = ClientGUICommon.TextAndGauge(self)
            self._processing_progress = ClientGUICommon.TextAndGauge(self)

            self._sync_now_button = ClientGUICommon.BetterButton(
                self, 'process now', self._SyncNow)
            self._pause_play_button = ClientGUICommon.BetterButton(
                self, 'pause', self._PausePlay)
            self._export_updates_button = ClientGUICommon.BetterButton(
                self, 'export updates', self._ExportUpdates)
            self._reset_button = ClientGUICommon.BetterButton(
                self, 'reset processing cache', self._Reset)

            #

            self._Refresh()

            #

            hbox = wx.BoxSizer(wx.HORIZONTAL)

            hbox.AddF(self._sync_now_button, CC.FLAGS_LONE_BUTTON)
            hbox.AddF(self._pause_play_button, CC.FLAGS_LONE_BUTTON)
            hbox.AddF(self._export_updates_button, CC.FLAGS_LONE_BUTTON)
            hbox.AddF(self._reset_button, CC.FLAGS_LONE_BUTTON)

            self.AddF(self._metadata_st, CC.FLAGS_EXPAND_PERPENDICULAR)
            self.AddF(self._download_progress, CC.FLAGS_EXPAND_PERPENDICULAR)
            self.AddF(self._processing_progress, CC.FLAGS_EXPAND_PERPENDICULAR)
            self.AddF(hbox, CC.FLAGS_BUTTON_SIZER)

            HydrusGlobals.client_controller.sub(self, 'Update',
                                                'service_updated')
Example #4
0
        def __init__(self, parent, service):

            ClientGUICommon.StaticBox.__init__(self, parent, 'files')

            self._service = service

            self._my_updater = ClientGUICommon.ThreadToGUIUpdater(
                self, self._Refresh)

            self._file_info_st = wx.StaticText(self)

            #

            self._Refresh()

            #

            self.AddF(self._file_info_st, CC.FLAGS_EXPAND_PERPENDICULAR)

            HydrusGlobals.client_controller.sub(self, 'Update',
                                                'service_updated')