3 // Copyright (C) 2012 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"
23 #include <ttfautohint.h>
24 #include <numberset.h>
38 class Drag_Drop_Line_Edit
;
46 Main_GUI(int, int, int,
50 bool, bool, int, bool);
54 void closeEvent(QCloseEvent
*);
63 void check_no_limit();
64 void check_no_increase();
65 void absolute_input();
66 void absolute_output();
67 void check_number_set();
68 void clear_status_bar();
73 int hinting_range_min
;
74 int hinting_range_max
;
76 int gray_strong_stem_width
;
77 int gdi_cleartype_strong_stem_width
;
78 int dw_cleartype_strong_stem_width
;
79 int increase_x_height
;
80 QString x_height_snapping_exceptions_string
;
81 number_range
* x_height_snapping_exceptions
;
82 int ignore_restrictions
;
83 int windows_compatibility
;
85 int hint_with_components
;
92 void create_connections();
93 void create_actions();
95 void create_status_bar();
98 void write_settings();
100 int check_filenames(const QString
&, const QString
&);
101 int open_files(const QString
&, FILE**, const QString
&, FILE**);
102 int handle_error(TA_Error
, const unsigned char*, QString
);
107 Drag_Drop_Line_Edit
* input_line
;
108 QPushButton
* input_button
;
110 Drag_Drop_Line_Edit
* output_line
;
111 QPushButton
* output_button
;
120 QComboBox
* fallback_box
;
124 QCheckBox
* no_limit_box
;
126 QLabel
* increase_label
;
127 QSpinBox
* increase_box
;
128 QCheckBox
* no_increase_box
;
130 QLineEdit
* snapping_line
;
132 QCheckBox
* wincomp_box
;
135 QCheckBox
* symbol_box
;
138 QPushButton
* run_button
;
142 QAction
* about_Qt_act
;
147 #endif // __MAINGUI_H__