Skip to content

Commit

Permalink
Refs #2857. Add appending files. The files should use the plus alg.
Browse files Browse the repository at this point in the history
Connect the next and previous buttons to appending files.
  • Loading branch information
Robert-Whitley committed Feb 7, 2012
1 parent 84f2aaf commit feb660c
Show file tree
Hide file tree
Showing 2 changed files with 368 additions and 298 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private slots:
void showEvent(QShowEvent *e);

/// Input file changed - update GUI accordingly
void inputFileChanged(const QString& filename);
void inputFileChanged(const QStringList& filenames);

/// Return the pair which is in focus and -1 if none
int pairInFocus();
Expand Down Expand Up @@ -221,6 +221,15 @@ private slots:
/// When data loaded set various buttons etc to active
void nowDataAvailable();

/// Adds the workspaces in a range.
void plusRangeWorkspaces();

/// Delete ranged workspaces.
void deleteRangedWorkspaces();

/// Get a name for the ranged workspace.
std::string getRangedName();

/// Check if grouping in table is consistent with data file
std::string isGroupingAndDataConsistent();

Expand Down Expand Up @@ -270,7 +279,7 @@ private slots:
int m_tabNumber;

/// used to test that a new filename has been entered
QString m_previousFilename;
QStringList m_previousFilenames;

/// List of current group names
std::vector<std::string> m_groupNames;
Expand Down Expand Up @@ -349,11 +358,11 @@ private slots:
/// change and load the run depending on the value passed as a parameter
void changeRun(int amountToChange);

/// Separate the muon file, current File becomes the beginning part of the file i.e the instrument in the file MUSR002413
void separateMuonFile(QString & currentFile, int & runNumberSize, int & runNumber);
/// Separate the muon file. The current File will remove the path (i.e MUSR002413.nxs)
void separateMuonFile(QString & filePath, QString & currentFile, QString & run, int & runSize);

/// Include the 0's fromt eh beginning of the file that were lost in conversion from QString to int
void getFullCode(int size, QString & limitedCode);
void getFullCode(int originalSize, QString & run);

/// Setup the signals for updating
void connectAutoUpdate();
Expand Down

0 comments on commit feb660c

Please sign in to comment.