Added form clearing function
git-svn-id: http://comictagger.googlecode.com/svn/trunk@5 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
parent
9c5cf74dab
commit
253913fe2f
@ -97,6 +97,10 @@ class TaggerWindow( QtGui.QMainWindow):
|
||||
self.actionQuery_Online.setStatusTip( 'Search online for tags' )
|
||||
self.actionQuery_Online.triggered.connect( self.queryOnline )
|
||||
|
||||
self.actionClearEntryForm.setShortcut( 'Ctrl+C' )
|
||||
self.actionClearEntryForm.setStatusTip( 'Clear all the data on the screen' )
|
||||
self.actionClearEntryForm.triggered.connect( self.clearForm )
|
||||
|
||||
# Help Menu
|
||||
self.actionAbout.setShortcut( 'Ctrl+A' )
|
||||
self.actionAbout.setStatusTip( 'Show the ' + self.appName + ' info' )
|
||||
@ -108,8 +112,8 @@ class TaggerWindow( QtGui.QMainWindow):
|
||||
self.toolBar.addAction( self.actionWrite_Tags )
|
||||
self.toolBar.addAction( self.actionParse_Filename )
|
||||
self.toolBar.addAction( self.actionQuery_Online )
|
||||
self.toolBar.addAction( self.actionClearEntryForm )
|
||||
|
||||
|
||||
def repackageArchive( self ):
|
||||
QtGui.QMessageBox.information(self, self.tr("Repackage Comic Archive"), self.tr("TBD"))
|
||||
|
||||
@ -174,6 +178,28 @@ class TaggerWindow( QtGui.QMainWindow):
|
||||
|
||||
self.lblArchiveInfo.setText( info_text )
|
||||
|
||||
def clearForm( self ):
|
||||
# recursivly clear the tab form
|
||||
self.clearChildren( self.tabWidget )
|
||||
|
||||
def clearChildren (self, widget ):
|
||||
|
||||
if ( isinstance(widget, QtGui.QLineEdit) or
|
||||
isinstance(widget, QtGui.QTextEdit)):
|
||||
widget.setText("")
|
||||
if ( isinstance(widget, QtGui.QComboBox) ):
|
||||
widget.setCurrentIndex( 0 )
|
||||
if ( isinstance(widget, QtGui.QCheckBox) ):
|
||||
widget.setChecked( False )
|
||||
if ( isinstance(widget, QtGui.QTableWidget) ):
|
||||
while widget.rowCount() > 0:
|
||||
widget.removeRow(0)
|
||||
|
||||
# recursive call on chillun
|
||||
for child in widget.children():
|
||||
self.clearChildren( child )
|
||||
|
||||
|
||||
def metadataToForm( self ):
|
||||
# copy the the metadata object into to the form
|
||||
|
||||
|
@ -685,6 +685,8 @@
|
||||
<addaction name="actionLoad"/>
|
||||
<addaction name="actionWrite_Tags"/>
|
||||
<addaction name="actionRepackage"/>
|
||||
<addaction name="actionRemoveCRTags"/>
|
||||
<addaction name="actionRemoveCBLTags"/>
|
||||
<addaction name="actionExit"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuHelp">
|
||||
@ -699,6 +701,7 @@
|
||||
</property>
|
||||
<addaction name="actionParse_Filename"/>
|
||||
<addaction name="actionQuery_Online"/>
|
||||
<addaction name="actionClearEntryForm"/>
|
||||
</widget>
|
||||
<addaction name="menuComicTagger"/>
|
||||
<addaction name="menuTags"/>
|
||||
@ -757,6 +760,21 @@
|
||||
<string>Query Online</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionClearEntryForm">
|
||||
<property name="text">
|
||||
<string>Clear Entry Form</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRemoveCRTags">
|
||||
<property name="text">
|
||||
<string>Remove CR Tags</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRemoveCBLTags">
|
||||
<property name="text">
|
||||
<string>Remove CBL Tags</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
|
7
todo.txt
7
todo.txt
@ -1,4 +1,4 @@
|
||||
|
||||
Remove metadata from archive
|
||||
|
||||
ComicArchive support for folders
|
||||
ComicArchive support for reading RARs
|
||||
@ -20,19 +20,14 @@ TaggerWindow entry fields
|
||||
|
||||
Form type validation Ints vs strings for month, year. etc
|
||||
|
||||
|
||||
Check all HTTP responses for errors
|
||||
|
||||
Clear form button
|
||||
Remove metadata from archive
|
||||
|
||||
Lots of error checking
|
||||
|
||||
Archive function to detect tag blocks out of sync
|
||||
|
||||
Use external RAR tools to generate rar with CIX!
|
||||
|
||||
|
||||
Hourglass popup, or whatever, for when busy
|
||||
|
||||
Idea: Support only CBI or CIX for any given file, and not both
|
||||
|
Loading…
x
Reference in New Issue
Block a user