[Companion] Radio profile/current firmware handling: (#4737)

* Fix possible confusion/data corruption when deleting radio profile (closes #4734, ref: #4686);
    * Add Delete Profile action to Radio Profiles menu (closes #4736) (but remove from from app prefs. panel);
    * Add confirmation prompt before deleting profile;
    * Open profile settings dialog when creating/copying a profile (closes #4735);
    * Make sure current (global) firmware flavor is properly updated when changing fw type/options in profile;
    * Append "-Copy" to name of copied profile;
    * Factor out Firmware global vars/functions in favor of static members.
This commit is contained in:
Max Paperno
2017-04-02 12:17:06 +02:00
committed by Bertrand Songis
parent 8d0db05e78
commit 36bb951314
11 changed files with 172 additions and 100 deletions
+5
View File
@@ -96,6 +96,7 @@ class MainWindow : public QMainWindow
void saveAs();
void cut();
void openRecentFile();
void loadProfileId(const unsigned pid);
void loadProfile();
void logFile();
void copy();
@@ -124,6 +125,8 @@ class MainWindow : public QMainWindow
void updateMenus();
void createProfile();
void copyProfile();
void deleteProfile(const int pid);
void deleteCurrentProfile();
void setActiveSubWindow(QWidget *window);
void autoClose();
@@ -149,6 +152,7 @@ class MainWindow : public QMainWindow
void updateRecentFileActions();
void updateProfilesActions();
int newProfile(bool loadProfile = true);
QString strippedName(const QString & fullFileName);
MdiChild * createMdiChild();
@@ -215,6 +219,7 @@ class MainWindow : public QMainWindow
QAction *profileActs[MAX_PROFILES];
QAction *createProfileAct;
QAction *copyProfileAct;
QAction *deleteProfileAct;
QAction *openDocURLAct;
};