17 */ |
17 */ |
18 |
18 |
19 #include "common.h" |
19 #include "common.h" |
20 #include "zz_configDialog.h" |
20 #include "zz_configDialog.h" |
21 #include "file.h" |
21 #include "file.h" |
|
22 #include "config.h" |
22 #include <qgridlayout.h> |
23 #include <qgridlayout.h> |
23 #include <qfiledialog.h> |
24 #include <qfiledialog.h> |
24 #include <qcolordialog.h> |
25 #include <qcolordialog.h> |
|
26 |
|
27 extern_cfg (str, io_ldpath); |
|
28 extern_cfg (str, gl_bgcolor); |
|
29 extern_cfg (str, gl_maincolor); |
|
30 extern_cfg (bool, lv_colorize); |
|
31 extern_cfg (bool, gl_colorbfc); |
|
32 extern_cfg (float, gl_maincolor_alpha); |
|
33 extern_cfg (int, gl_linethickness); |
25 |
34 |
26 ConfigDialog* g_ConfigDialog = nullptr; |
35 ConfigDialog* g_ConfigDialog = nullptr; |
27 |
36 |
28 #define INIT_CHECKBOX(BOX, CFG) \ |
37 #define INIT_CHECKBOX(BOX, CFG) \ |
29 BOX->setCheckState (CFG ? Qt::Checked : Qt::Unchecked); |
38 BOX->setCheckState (CFG ? Qt::Checked : Qt::Unchecked); |