3 // Copyright (C) 2012-2013 by Werner Lemberg.
5 // This file is part of the ttfautohint library, and may only be used,
6 // modified, and distributed under the terms given in `COPYING'. By
7 // continuing to use, modify, or distribute this file you indicate that you
8 // have read `COPYING' and understand and accept it fully.
10 // The file `COPYING' mentioned in the previous paragraph is distributed
11 // with the ttfautohint library.
20 #include "ddlineedit.h"
21 #include "ttlineedit.h"
24 #include <ttfautohint.h>
25 #include <numberset.h>
38 class Drag_Drop_Line_Edit
;
39 class Tooltip_Line_Edit
;
47 Main_GUI(int, int, int,
52 bool, bool, const char*, bool,
56 void create_alternative_layout();
59 void closeEvent(QCloseEvent
*);
69 void check_no_limit();
70 void check_no_increase();
71 void absolute_input();
72 void absolute_output();
73 void check_number_set();
74 void clear_status_bar();
79 int hinting_range_min
;
80 int hinting_range_max
;
82 int gray_strong_stem_width
;
83 int gdi_cleartype_strong_stem_width
;
84 int dw_cleartype_strong_stem_width
;
85 int increase_x_height
;
86 QString x_height_snapping_exceptions_string
;
87 number_range
* x_height_snapping_exceptions
;
88 int ignore_restrictions
;
89 int windows_compatibility
;
93 int fallback_script_idx
;
99 void create_connections();
100 void create_actions();
102 void create_status_bar();
104 void read_settings();
105 void write_settings();
107 int check_filenames(const QString
&, const QString
&);
108 int open_files(const QString
&, FILE**, const QString
&, FILE**);
109 int handle_error(TA_Error
, const unsigned char*, QString
);
115 Drag_Drop_Line_Edit
* input_line
;
116 QPushButton
* input_button
;
118 QLabel
* output_label
;
119 Drag_Drop_Line_Edit
* output_line
;
120 QPushButton
* output_button
;
132 QLabel
* fallback_label
;
133 QComboBox
* fallback_box
;
137 QCheckBox
* no_limit_box
;
139 QLabel
* increase_label
;
140 QSpinBox
* increase_box
;
141 QCheckBox
* no_increase_box
;
143 QLabel
* snapping_label
;
144 Tooltip_Line_Edit
* snapping_line
;
146 QCheckBox
* wincomp_box
;
149 QCheckBox
* symbol_box
;
150 QCheckBox
* dehint_box
;
153 QPushButton
* run_button
;
157 QAction
* about_Qt_act
;
162 #endif // __MAINGUI_H__