[Companion] Another simplification

This commit is contained in:
Bertrand Songis
2016-11-24 07:24:49 +01:00
parent d82ec0fe9c
commit 0ca0785912
17 changed files with 126 additions and 124 deletions
+7 -10
View File
@@ -43,15 +43,14 @@ class MdiChild : public QWidget
~MdiChild();
void newFile();
bool loadFile(const QString &fileName, bool resetCurrentFile=true);
bool loadFile(const QString & fileName, bool resetCurrentFile=true);
bool loadBackup();
bool save();
bool saveAs(bool isNew=false);
bool saveFile(const QString &fileName, bool setCurrent=true);
bool saveFile(const QString & fileName, bool setCurrent=true);
bool hasSelection();
QString userFriendlyCurrentFile();
QString currentFile() { return curFile; }
// void keyPressEvent(QKeyEvent *event);
bool hasPasteData();
void viableModelSelected(bool viable);
void eepromInterfaceChanged();
@@ -62,7 +61,7 @@ class MdiChild : public QWidget
void copyAvailable(bool val);
protected:
void closeEvent(QCloseEvent *event);
void closeEvent(QCloseEvent * event);
private slots:
void documentWasModified();
@@ -87,13 +86,11 @@ class MdiChild : public QWidget
private:
bool maybeSave();
void setCurrentFile(const QString &fileName);
QString strippedName(const QString &fullFileName);
void saveSelection();
void restoreSelection();
bool loadOtxFile(const QString &fileName, bool resetCurrentFile);
void setCurrentFile(const QString & fileName);
QString strippedName(const QString & fullFileName);
bool loadOtxFile(const QString & fileName);
Ui::mdiChild *ui;
Ui::mdiChild * ui;
QString curFile;