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 _CUSTOMIZESPLASHDIALOG_H_
22 #define _CUSTOMIZESPLASHDIALOG_H_
25 #include "firmwareinterface.h"
29 class CustomizeSplashDialog
;
32 const int WIDTH_TARANIS
= 212;
33 const int HEIGHT_TARANIS
= 64;
34 const int WIDTH_9X
= 128;
35 const int HEIGHT_9X
= 64;
37 enum Source
{FW
, PICT
, PROFILE
, UNDEFINED
};
38 enum LCDFormat
{LCD9X
, LCDTARANIS
};
44 void markSourceButton();
45 void copyImage( Side
);
46 bool displayImage( QString fileName
, Source source
);
51 QLineEdit
*fileNameEdit
;
52 QPushButton
*saveButton
;
53 QPushButton
*invertButton
;
54 QToolButton
*libraryButton
;
55 QPushButton
*loadFwButton
;
56 QPushButton
*loadPictButton
;
57 QPushButton
*loadProfileButton
;
59 QString
*saveToFileName
;
66 class CustomizeSplashDialog
: public QDialog
73 explicit CustomizeSplashDialog(QWidget
*parent
= 0);
74 ~CustomizeSplashDialog();
77 void on_leftLoadFwButton_clicked();
78 void on_leftLoadPictButton_clicked();
79 void on_leftLoadProfileButton_clicked();
80 void on_leftLibraryButton_clicked();
81 void on_leftSaveButton_clicked();
82 void on_leftInvertButton_clicked();
84 void on_rightLoadFwButton_clicked();
85 void on_rightLoadPictButton_clicked();
86 void on_rightLoadProfileButton_clicked();
87 void on_rightLibraryButton_clicked();
88 void on_rightSaveButton_clicked();
89 void on_rightInvertButton_clicked();
91 void on_copyRightToLeftButton_clicked();
92 void on_copyLeftToRightButton_clicked();
95 void loadFirmware( Side
);
96 void loadPicture( Side
);
97 void loadProfile( Side
);
98 void libraryButton_clicked( Side
);
99 void saveButton_clicked( Side
);
100 void invertButton_clicked( Side
);
102 Ui::CustomizeSplashDialog
*ui
;
103 enum sideEnum
{ LEFT
, RIGHT
};
106 #endif // _CUSTOMIZESPLASHDIALOG_H_