示例#1
0
 def reject(self):
     """
     Slot for the 'Cancel' button 
     """
     self.jig.attr_update(self.jig_attrs) # Restore attributes of the jig.
     self.glpane.gl_update()
     QDialog.reject(self)
示例#2
0
 def reject(self):
     """The slot method for the 'Cancel' button."""
     QDialog.reject(self)
     self.gamessJig.attr_update(self.jig_attrs) # Restore attributes of the jig.
     # self.gamessJig.color = self.gamessJig.normcolor = self.original_normcolor
     self.gamessJig.cancelled = True
     self.glpane.gl_update()
示例#3
0
 def reject(self):
     """
     If elements modified or external file loaded, restore
     current pref to original since our dialog is reused
     """
     if self.isElementModified or self.fileName:  
         self.elemTable.resetElemTable(self.oldTable)
         self._updateModelDisplay()
     
     QDialog.reject(self)
示例#4
0
    def reject(self):
        '''Slot for the 'Cancel' button '''
        self.jig.attr_update(self.jig_attrs)  # Restore attributes of the jig.
        # Before exit the dialog, turn off the highlighting and selection
        self.jig.highlightChecked = False
        self.jig.pickSelected(False)

        self.glpane.gl_update()

        QDialog.reject(self)
示例#5
0
 def reject(self):
     '''Slot for the 'Cancel' button '''
     self.jig.attr_update(self.jig_attrs) # Restore attributes of the jig.
     # Before exit the dialog, turn off the highlighting and selection
     self.jig.highlightChecked = False
     self.jig.pickSelected(False)
     
     self.glpane.gl_update()
     
     QDialog.reject(self)
示例#6
0
    def reject(self):
        """
        If elements modified or external file loaded, restore
        current pref to original since our dialog is reused
        """
        if self.isElementModified or self.fileName:
            self.elemTable.resetElemTable(self.oldTable)
            self._updateModelDisplay()

        QDialog.reject(self)
示例#7
0
    def processDone(self):
        #self.fwThread.stop()
        self.jobTimer.stop()

        if self.process.normalExit():
            print "The process is done!"
            QDialog.accept(self.progressDialog)
        else:
            print "The process is cancelled!"
            QDialog.reject(self.progressDialog)
        return
示例#8
0
 def processDone(self):
     #self.fwThread.stop()
     self.jobTimer.stop()
     
     if self.process.normalExit():
         print "The process is done!"
         QDialog.accept(self.progressDialog)
     else:
         print "The process is cancelled!"
         QDialog.reject(self.progressDialog)
     return
示例#9
0
 def cancel_btn_clicked(self):
     """
     Slot for Cancel button
     """
     if env.debug():
         print "cancel"
     # restore values we grabbed on entry.
     for key,val in zip((endRMS_prefs_key, endMax_prefs_key, cutoverRMS_prefs_key, cutoverMax_prefs_key), self.previousParams):
         env.prefs[key] = val
     self.update_widgets(update_seltype = False) #k might not matter since we're about to hide it, but can't hurt
     QDialog.reject(self)
     return
示例#10
0
    def reject(self):
        '''Slot for the 'Cancel' button '''
        
        self.chunk.color = self.original_color
        self.chunk.setcolor(self.chunk.color)

        QDialog.reject(self)
        
        # A hidden chunk has no glpane attr.  This fixes bug 1137.  Mark 051126.
        if self.chunk.hidden:
            return

        self.glpane.gl_update()
示例#11
0
 def accept(self):
     if self.key_ledit.text().isEmpty() or unicode(
             self.key_ledit.text()).isspace():
         errmsg = u"Key name field cannot be empty!"
         return error_dialog(None,
                             "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION),
                             _(errmsg),
                             show=True,
                             show_copy_button=False)
     if len(self.key_ledit.text()) < 4:
         errmsg = u"Key name must be at <i>least</i> 4 characters long!"
         return error_dialog(None,
                             "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION),
                             _(errmsg),
                             show=True,
                             show_copy_button=False)
     if uStrCmp(self.key_ledit.text(),
                self.parent.listy.currentItem().text()):
         # Same exact name ... do nothing.
         return QDialog.reject(self)
     for k in self.parent.plugin_keys.keys():
         if (uStrCmp(self.key_ledit.text(), k, True) and
                 not uStrCmp(k,
                             self.parent.listy.currentItem().text(), True)):
             errmsg = u"The key name <strong>{0}</strong> is already being used.".format(
                 self.key_ledit.text())
             return error_dialog(None,
                                 "{0} {1}".format(PLUGIN_NAME,
                                                  PLUGIN_VERSION),
                                 _(errmsg),
                                 show=True,
                                 show_copy_button=False)
     QDialog.accept(self)
示例#12
0
 def accept(self):
     if self.key_ledit.text().isEmpty() or unicode(self.key_ledit.text()).isspace():
         errmsg = u"Key name field cannot be empty!"
         return error_dialog(None, "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION),
                                 _(errmsg), show=True, show_copy_button=False)
     if len(self.key_ledit.text()) < 4:
         errmsg = u"Key name must be at <i>least</i> 4 characters long!"
         return error_dialog(None, "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION),
                                 _(errmsg), show=True, show_copy_button=False)
     if uStrCmp(self.key_ledit.text(), self.parent.listy.currentItem().text()):
             # Same exact name ... do nothing.
             return QDialog.reject(self)
     for k in self.parent.plugin_keys.keys():
         if (uStrCmp(self.key_ledit.text(), k, True) and
                     not uStrCmp(k, self.parent.listy.currentItem().text(), True)):
             errmsg = u"The key name <strong>{0}</strong> is already being used.".format(self.key_ledit.text())
             return error_dialog(None, "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION),
                                 _(errmsg), show=True, show_copy_button=False)
     QDialog.accept(self)
示例#13
0
文件: duplicates.py 项目: sss/calibre
 def reject(self):
     self.select_none()
     QDialog.reject(self)
示例#14
0
 def reject(self):
     QDialog.reject(self)
示例#15
0
 def reject(self):
     '''Slot for the 'Cancel' button '''
     self.grid_plane.attr_update(self.jig_attrs) # Restore attributes of the jig.
     self.glpane.gl_update()
     QDialog.reject(self)
示例#16
0
 def reject(self):
     QDialog.reject(self)
     self.comment = None
     self.comment_textedit.setPlainText("") # Clear text.
示例#17
0
 def reject(self):
     gprefs['metadata_single_gui_geom'] = bytearray(self.saveGeometry())
     self.identify_widget.cancel()
     self.covers_widget.cancel()
     return QDialog.reject(self)
 def reject(self):
     self.canceled = True
     QDialog.reject(self)
示例#19
0
文件: jobs.py 项目: bindx/EE-Book
 def reject(self):
     self.save_state()
     QDialog.reject(self)
示例#20
0
 def reject(self):
     self.stats.remove(self.location)
     QDialog.reject(self)
示例#21
0
 def reject(self):
     self.stats.remove(self.location)
     QDialog.reject(self)
示例#22
0
 def reject(self):
     self.cleanup()
     QDialog.reject(self)
示例#23
0
 def reject(self):
     self.rejected = True
     self.restorer.progress_callback = lambda x, y: x
     QDialog.reject(self)
 def reject(self):
     self.rejected = True
     self.restorer.progress_callback = lambda x, y: x
     QDialog.reject(self)
示例#25
0
 def reject(self):
     '''Slot for the 'Cancel' button '''
     self.grid_plane.attr_update(
         self.jig_attrs)  # Restore attributes of the jig.
     self.glpane.gl_update()
     QDialog.reject(self)
示例#26
0
 def reject(self):
     self.save_geometry()
     return QDialog.reject(self)
示例#27
0
 def reject(self):
     self.save_geometry()
     QDialog.reject(self)
示例#28
0
 def reject(self):
     self.rejected = True
     QDialog.reject(self)
示例#29
0
 def reject(self):
     self.save_geometry()
     self.select_none()
     QDialog.reject(self)
示例#30
0
 def reject(self):
     tprefs.set(self.name + "-geometry", bytearray(self.saveGeometry()))
     if hasattr(self, "splitter"):
         tprefs.set(self.name + "-splitter-state", bytearray(self.splitter.saveState()))
     QDialog.reject(self)
示例#31
0
 def reject(self):
     if not self.cancelable:
         return
     QDialog.reject(self)
示例#32
0
文件: dnd.py 项目: mrmac123/calibre
 def reject(self):
     self.rejected = True
     QDialog.reject(self)
示例#33
0
 def reject(self):
     self.select_none()
     QDialog.reject(self)
示例#34
0
 def reject(self):
     self.covers_widget.cancel()
     return QDialog.reject(self)
示例#35
0
 def reject(self):
     self.save_state()
     QDialog.reject(self)
示例#36
0
 def reject(self):
     self.canceled = True
     QDialog.reject(self)
示例#37
0
 def reject(self):
     QDialog.reject(self)
示例#38
0
 def reject(self):
     self.save_state()
     return QDialog.reject(self)
示例#39
0
 def reject(self):
     self.rejected = True
     return QDialog.reject(self)
示例#40
0
 def reject(self):
     tprefs.set(self.name + '-geometry', bytearray(self.saveGeometry()))
     if hasattr(self, 'splitter'):
         tprefs.set(self.name + '-splitter-state',
                    bytearray(self.splitter.saveState()))
     QDialog.reject(self)
示例#41
0
 def reject(self):
     gprefs.set('single-cover-fetch-dialog-geometry', bytearray(self.saveGeometry()))
     self.covers_widget.cancel()
     return QDialog.reject(self)
示例#42
0
 def reject(self):
     tprefs.set(self.name + '-geometry', bytearray(self.saveGeometry()))
     if hasattr(self, 'splitter'):
         tprefs.set(self.name + '-splitter-state', bytearray(self.splitter.saveState()))
     QDialog.reject(self)
示例#43
0
 def reject(self):
     gprefs['metadata_single_gui_geom'] = bytearray(self.saveGeometry())
     self.identify_widget.cancel()
     self.covers_widget.cancel()
     return QDialog.reject(self)
示例#44
0
 def reject(self):
     tprefs.set('preferences_geom', bytearray(self.saveGeometry()))
     QDialog.reject(self)
示例#45
0
 def reject(self):
     self.save_geometry()
     self.select_none()
     QDialog.reject(self)
示例#46
0
 def reject(self):
     self.rejected = True
     return QDialog.reject(self)
示例#47
0
 def reject(self):
     self.identify_widget.cancel()
     self.covers_widget.cancel()
     return QDialog.reject(self)
示例#48
0
 def reject(self):
     self.close()
     QDialog.reject(self)
示例#49
0
 def reject(self):
     if not self.cancelable:
         return
     QDialog.reject(self)
示例#50
0
 def reject(self):
     gprefs.set('single-cover-fetch-dialog-geometry',
                bytearray(self.saveGeometry()))
     self.covers_widget.cancel()
     return QDialog.reject(self)
示例#51
0
 def reject(self):
     self.save_state()
     return QDialog.reject(self)
示例#52
0
 def reject(self):
     self._close()
     QDialog.reject(self)
示例#53
0
 def reject(self):
     """
     The slot method for the "Cancel" button.
     """
     QDialog.reject(self)
示例#54
0
 def reject(self):
     tprefs.set('preferences_geom', bytearray(self.saveGeometry()))
     QDialog.reject(self)
示例#55
0
 def reject(self):
     QDialog.reject(self)
     self.comment = None
     self.comment_textedit.setPlainText("") # Clear text.