[Companion] Add optional logging of all debug output. (#4974)
[opentx.git] / companion / src / apppreferencesdialog.h
blob82bb84a5688da1ba4866942cad4938fc480f9f4c
1 /*
2 * Copyright (C) OpenTX
4 * Based on code named
5 * th9x - http://code.google.com/p/th9x
6 * er9x - http://code.google.com/p/er9x
7 * gruvin9x - http://code.google.com/p/gruvin9x
9 * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
21 #ifndef _APPPREFERENCESDIALOG_H_
22 #define _APPPREFERENCESDIALOG_H_
24 #include <QDialog>
25 #include <QCheckBox>
26 #include "eeprominterface.h"
28 namespace Ui {
29 class AppPreferencesDialog;
32 class Joystick;
34 class AppPreferencesDialog : public QDialog
36 Q_OBJECT
38 public:
39 explicit AppPreferencesDialog(QWidget * parent = 0);
40 ~AppPreferencesDialog();
41 Joystick * joystick;
43 signals:
44 void firmwareProfileChanged(int profId);
46 private:
47 QList<QCheckBox *> optionsCheckBoxes;
48 bool updateLock;
49 void showVoice(bool);
50 void showVoice();
51 void hideVoice();
52 void populateLocale();
53 void populateFirmwareOptions(const Firmware *);
54 Firmware * getFirmwareVariant();
55 QCheckBox * voice;
57 Ui::AppPreferencesDialog *ui;
58 void initSettings();
59 bool displayImage(const QString & fileName);
61 protected slots:
62 void shrink();
63 void baseFirmwareChanged();
64 void firmwareOptionChanged(bool state);
65 void toggleAppLogSettings();
67 void writeValues();
68 void on_libraryPathButton_clicked();
69 void on_snapshotPathButton_clicked();
70 void on_snapshotClipboardCKB_clicked();
71 void on_backupPathButton_clicked();
72 void on_ProfilebackupPathButton_clicked();
73 void on_ge_pathButton_clicked();
75 void on_sdPathButton_clicked();
76 void on_SplashSelect_clicked();
77 void on_clearImageButton_clicked();
78 void on_btn_appLogsDir_clicked();
80 #if defined(JOYSTICKS)
81 void on_joystickChkB_clicked();
82 void on_joystickcalButton_clicked();
83 #endif
86 #endif // _APPPREFERENCESDIALOG_H_