

Public Member Functions | |
| def | __init__ |
| Constructor. | |
| def | decreaseNumRunInfoWindows |
| def | setFileRange |
| Update the file range shown on the widget. | |
| def | setSnapLoc |
| Get the location from a Qt directory browser, put it on the line-edit. | |
| def | setFileLoc |
| Get the file from a Qt file browser, put it on the line-edit. | |
| def | toggleRunInfo |
| Toggle the checkbox for input run information. | |
| def | toggleFileInfo |
| Toggle the checkbox for input file information. | |
| def | flagCurrentFileChanged |
| set self.currentFileChanged to True | |
| def | advanceAndRead |
| Advance the current file by num, read the new file. | |
| def | useIndividualFile |
| def | returnAndRead |
| Subtract the current file by num, read the new file. | |
| def | forceReadTheData |
| wrapper for readTheData with forcread True (used as a slot to connect the pushbutton signal with) | |
| def | readTheData |
| Reads the data if the current file has changed or forceRead is True. | |
| def | getSnapFormat |
| Get the users snapshot format choice. | |
| def | setSnapFormat |
| set the snapshot format | |
| def | getRun |
| Get the users chosen run number. | |
| def | getStartfile |
| Get the first file number from the range. | |
| def | getCurrentFile |
| Get the current file from the range. | |
| def | doConvertUnits |
| Query the checkbox for unit conversion. | |
| def | setCurrentFile |
| Set the current file up for reading. | |
| def | checkCurrentFileVal |
| Check if the currently entered file number is valid. | |
| def | getEndfile |
| Get the last file number. | |
| def | getSnapLoc |
| Get the snapshot location chosen by the user. | |
| def | getFileLoc |
| Get the file location chosen by the user. | |
| def | readSettings |
| Read stored settings from disk. | |
| def | writeSettings |
| Write the settings to disk. | |
| def | infoPresent |
| checks if the run number, file number and snapshot location have been entered as they should. | |
Public Attributes | |
| ui | |
| currentFileChanged | |
Static Public Attributes | |
| int | numRunInfoWindows = 0 |
| def CRunInfoModule::CRunInfo::__init__ | ( | self, | ||
| ui, | ||||
parent = None | ||||
| ) |
Constructor.
Set up signal<-->slot connections
| def CRunInfoModule::CRunInfo::forceReadTheData | ( | self | ) |
wrapper for readTheData with forcread True (used as a slot to connect the pushbutton signal with)
returns the return value from readTheData (i.e. False on read error)
| def CRunInfoModule::CRunInfo::infoPresent | ( | self | ) |
checks if the run number, file number and snapshot location have been entered as they should.
If all is ok: writes the set to the set file
| def CRunInfoModule::CRunInfo::readTheData | ( | self, | ||
forceRead = False | ||||
| ) |
Reads the data if the current file has changed or forceRead is True.
returns False on error
emits a signal fileWasRead if a file was succesfully read
| def CRunInfoModule::CRunInfo::setCurrentFile | ( | self, | ||
| file | ||||
| ) |
Set the current file up for reading.
If it is outside the allowed range: adjust the number.
| def CRunInfoModule::CRunInfo::setFileLoc | ( | self, | ||
file = None | ||||
| ) |
Get the file from a Qt file browser, put it on the line-edit.
| file | if a file is specified: file browser is not shown, the line-edit is updated with the file. |
1.5.8