Esempio n. 1
0
    def on_reset_statistics(self, *args):

        option_dialog(
            parent=self.dialog,
            title=_('Reset Transfer Statistics?'),
            message=_('Are you sure you wish to reset transfer statistics?'),
            callback=self.on_reset_statistics_response)
Esempio n. 2
0
    def on_try_clear_all(self, *args):

        option_dialog(parent=self.frame.MainWindow,
                      title=_('Clear All Uploads'),
                      message=_('Are you sure you wish to clear all uploads?'),
                      callback=self.on_clear_response,
                      callback_data="all")
Esempio n. 3
0
    def on_clear_wishlist(self, *args):

        option_dialog(
            parent=self.dialog,
            title=_('Clear Wishlist?'),
            message=_('Are you sure you wish to clear your wishlist?'),
            callback=self.clear_wishlist_response)
Esempio n. 4
0
    def on_try_clear_all(self, *_args):

        option_dialog(parent=self.frame.MainWindow,
                      title=_('Clear All Downloads'),
                      message=_('Do you really want to clear all downloads?'),
                      callback=self.on_clear_response,
                      callback_data="all")
Esempio n. 5
0
    def on_try_clear_queued(self, *args):

        option_dialog(
            parent=self.frame.MainWindow,
            title=_('Clear Queued Downloads'),
            message=_('Are you sure you wish to clear all queued downloads?'),
            callback=self.on_clear_response,
            callback_data="queued")
Esempio n. 6
0
    def on_reset_statistics(self, *_args):

        option_dialog(
            parent=self.dialog,
            title=_('Reset Transfer Statistics?'),
            message=_('Do you really want to reset transfer statistics?'),
            callback=self.on_reset_statistics_response
        )
Esempio n. 7
0
    def on_try_clear_queued(self, *_args):

        option_dialog(
            parent=self.frame.MainWindow,
            title=_('Clear Queued Uploads'),
            message=_('Do you really want to clear all queued uploads?'),
            callback=self.on_clear_response,
            callback_data="queued")
Esempio n. 8
0
    def on_delete_chat_log(self, *_args):

        option_dialog(
            parent=self.frame.MainWindow,
            title=_('Delete Logged Messages?'),
            message=
            _('Do you really want to permanently delete all logged messages for this user?'
              ),
            callback=self.on_delete_chat_log_response)
Esempio n. 9
0
    def on_delete_room_log(self, *args):

        option_dialog(
            parent=self.frame.MainWindow,
            title=_('Delete Logged Messages?'),
            message=
            _('Are you sure you wish to permanently delete all logged messages for this room?'
              ),
            callback=self.on_delete_room_log_response)
Esempio n. 10
0
    def download_large_folder(self, username, folder, numfiles, msg):

        option_dialog(
            parent=self.frame.MainWindow,
            title=_("Download %(num)i files?") % {'num': numfiles},
            message=
            _("Are you sure you wish to download %(num)i files from %(user)s's folder %(folder)s?"
              ) % {
                  'num': numfiles,
                  'user': username,
                  'folder': folder
              },
            callback=self.folder_download_response,
            callback_data=msg)
Esempio n. 11
0
    def on_clear_wishlist(self, *_args):

        option_dialog(parent=self.dialog,
                      title=_('Clear Wishlist?'),
                      message=_('Do you really want to clear your wishlist?'),
                      callback=self.clear_wishlist_response)
Esempio n. 12
0
    def remove_all_pages(self):

        option_dialog(parent=self.window,
                      title=_('Close All Tabs?'),
                      message=_('Are you sure you wish to close all tabs?'),
                      callback=self.remove_all_pages_response)