summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/ui.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-22 19:02:25 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-22 19:02:25 +0200
commit4ab33fdfbb23fdfed5327d402989fd53d79f5380 (patch)
treeeef1c2f20d1d9bfe7d44b3a7f4e1bcb2f568d4ec /facetracknoir/ui.h
parent05203f39e6314c09f65d69c028b9f9d864de3f7b (diff)
main, ui: store config files in a predefined directory
Settings files are now stored in Documents/opentrack-version. The transition path is to copy all .ini files into that directory, accessible through the "Profile" menu dropdown. Issue: #179
Diffstat (limited to 'facetracknoir/ui.h')
-rw-r--r--facetracknoir/ui.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/facetracknoir/ui.h b/facetracknoir/ui.h
index 097b2439..0c3063d4 100644
--- a/facetracknoir/ui.h
+++ b/facetracknoir/ui.h
@@ -93,22 +93,20 @@ class MainWindow : public QMainWindow, private State
void changeEvent(QEvent* e) override;
- void createIconGroupBox();
void load_settings();
void updateButtonState(bool running, bool inertialp);
- void fill_profile_combobox();
void display_pose(const double* mapped, const double* raw);
void ensure_tray();
void set_title(const QString& game_title = QStringLiteral(""));
+ void save();
+ static bool get_new_config_name_from_dialog(QString &ret);
+ static void set_profile(const QString& profile);
public slots:
void shortcutRecentered();
void shortcutToggled();
void shortcutZeroed();
void bindKeyboardShortcuts();
private slots:
- void open();
- void save();
- void saveAs();
void exit();
void profileSelected(int index);
@@ -121,6 +119,11 @@ private slots:
void restore_from_tray(QSystemTrayIcon::ActivationReason);
void maybe_start_profile_from_executable();
+
+ void make_empty_config();
+ void make_copied_config();
+ void open_config_directory();
+ void refresh_config_list();
public slots:
void startTracker();
void stopTracker();
@@ -129,7 +132,5 @@ public:
~MainWindow();
void save_mappings();
void load_mappings();
- static QString remove_app_path(const QString full_path);
static void set_working_directory();
- static void set_profile(const QString& profile);
};