Exemple #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)
Exemple #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()
Exemple #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)
Exemple #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)
 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)
Exemple #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)
    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
Exemple #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
Exemple #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
Exemple #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()
Exemple #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)
Exemple #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)
Exemple #13
0
 def reject(self):
     self.select_none()
     QDialog.reject(self)
Exemple #14
0
 def reject(self):
     QDialog.reject(self)
 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)
Exemple #16
0
 def reject(self):
     QDialog.reject(self)
     self.comment = None
     self.comment_textedit.setPlainText("") # Clear text.
Exemple #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)
Exemple #19
0
 def reject(self):
     self.save_state()
     QDialog.reject(self)
Exemple #20
0
 def reject(self):
     self.stats.remove(self.location)
     QDialog.reject(self)
Exemple #21
0
 def reject(self):
     self.stats.remove(self.location)
     QDialog.reject(self)
Exemple #22
0
 def reject(self):
     self.cleanup()
     QDialog.reject(self)
Exemple #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)
Exemple #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)
Exemple #26
0
 def reject(self):
     self.save_geometry()
     return QDialog.reject(self)
Exemple #27
0
 def reject(self):
     self.save_geometry()
     QDialog.reject(self)
Exemple #28
0
 def reject(self):
     self.rejected = True
     QDialog.reject(self)
Exemple #29
0
 def reject(self):
     self.save_geometry()
     self.select_none()
     QDialog.reject(self)
 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)
Exemple #31
0
 def reject(self):
     if not self.cancelable:
         return
     QDialog.reject(self)
Exemple #32
0
 def reject(self):
     self.rejected = True
     QDialog.reject(self)
Exemple #33
0
 def reject(self):
     self.select_none()
     QDialog.reject(self)
Exemple #34
0
 def reject(self):
     self.covers_widget.cancel()
     return QDialog.reject(self)
Exemple #35
0
 def reject(self):
     self.save_state()
     QDialog.reject(self)
 def reject(self):
     self.canceled = True
     QDialog.reject(self)
Exemple #37
0
 def reject(self):
     QDialog.reject(self)
 def reject(self):
     self.save_state()
     return QDialog.reject(self)
Exemple #39
0
 def reject(self):
     self.rejected = True
     return QDialog.reject(self)
Exemple #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)
Exemple #41
0
 def reject(self):
     gprefs.set('single-cover-fetch-dialog-geometry', bytearray(self.saveGeometry()))
     self.covers_widget.cancel()
     return QDialog.reject(self)
Exemple #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)
Exemple #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)
Exemple #44
0
 def reject(self):
     tprefs.set('preferences_geom', bytearray(self.saveGeometry()))
     QDialog.reject(self)
Exemple #45
0
 def reject(self):
     self.save_geometry()
     self.select_none()
     QDialog.reject(self)
Exemple #46
0
 def reject(self):
     self.rejected = True
     return QDialog.reject(self)
Exemple #47
0
 def reject(self):
     self.identify_widget.cancel()
     self.covers_widget.cancel()
     return QDialog.reject(self)
Exemple #48
0
 def reject(self):
     self.close()
     QDialog.reject(self)
Exemple #49
0
 def reject(self):
     if not self.cancelable:
         return
     QDialog.reject(self)
Exemple #50
0
 def reject(self):
     gprefs.set('single-cover-fetch-dialog-geometry',
                bytearray(self.saveGeometry()))
     self.covers_widget.cancel()
     return QDialog.reject(self)
Exemple #51
0
 def reject(self):
     self.save_state()
     return QDialog.reject(self)
Exemple #52
0
 def reject(self):
     self._close()
     QDialog.reject(self)
Exemple #53
0
 def reject(self):
     """
     The slot method for the "Cancel" button.
     """
     QDialog.reject(self)
 def reject(self):
     tprefs.set('preferences_geom', bytearray(self.saveGeometry()))
     QDialog.reject(self)
Exemple #55
0
 def reject(self):
     QDialog.reject(self)
     self.comment = None
     self.comment_textedit.setPlainText("") # Clear text.