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