forked from michaelrsweet/epm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ListEditor.h
291 lines (289 loc) · 11.2 KB
/
ListEditor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
// generated by Fast Light User Interface Designer (fluid) version 1.0105
#ifndef ListEditor_h
#define ListEditor_h
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include "epm.h"
#include <FL/Fl_Preferences.H>
#include <FL/Fl_Menu_Bar.H>
#include "ListManager.h"
#include <FL/Fl_Menu_Button.H>
#include <FL/Fl_File_Browser.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Choice.H>
#include <FL/Fl_Check_Button.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Light_Button.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Return_Button.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Tabs.H>
#include <FL/Fl_Counter.H>
#include <FL/Fl_Browser.H>
#include <FL/Fl_File_Chooser.H>
class ListEditor {
static ListEditor *first_;
static char history_[10][1024];
static Fl_Preferences prefs_;
dist_t *dist_;
char filename_[1024];
char icontitle_[1024];
int margins_[7];
int modified_;
ListEditor *next_;
char title_[1024];
void add_subpkg_cb();
void build_cb();
int check_save();
void close_cb();
void copy_cb();
void cut_cb();
void delete_cb();
void delete_subpkg_cb();
void file_settings_cb(int save);
void help_cb(const char *html);
void list_cb();
void list_subpkg_cb();
void margins_cb();
void modified(int m);
void new_cb();
void open_cb();
void open_history_cb(const char *listfile);
void paste_cb();
void project_ok_cb();
void project_settings_cb();
void quit_cb();
void save_cb();
void save_as_cb();
void set_title();
void update_history(const char *listfile);
void update_list();
void update_margins();
void update_subpkgs();
public:
ListEditor(const char *listfile);
private:
Fl_Double_Window *window;
inline void cb_window_i(Fl_Double_Window*, void*);
static void cb_window(Fl_Double_Window*, void*);
Fl_Menu_Bar *menubar;
static Fl_Menu_Item menu_menubar[];
inline void cb_New_i(Fl_Menu_*, void*);
static void cb_New(Fl_Menu_*, void*);
inline void cb_Open_i(Fl_Menu_*, void*);
static void cb_Open(Fl_Menu_*, void*);
static Fl_Menu_Item *history_items;
inline void cb_history_items_i(Fl_Menu_*, void*);
static void cb_history_items(Fl_Menu_*, void*);
inline void cb_filename_i(Fl_Menu_*, void*);
static void cb_filename(Fl_Menu_*, void*);
inline void cb_filename1_i(Fl_Menu_*, void*);
static void cb_filename1(Fl_Menu_*, void*);
inline void cb_filename2_i(Fl_Menu_*, void*);
static void cb_filename2(Fl_Menu_*, void*);
inline void cb_filename3_i(Fl_Menu_*, void*);
static void cb_filename3(Fl_Menu_*, void*);
inline void cb_filename4_i(Fl_Menu_*, void*);
static void cb_filename4(Fl_Menu_*, void*);
inline void cb_filename5_i(Fl_Menu_*, void*);
static void cb_filename5(Fl_Menu_*, void*);
inline void cb_filename6_i(Fl_Menu_*, void*);
static void cb_filename6(Fl_Menu_*, void*);
inline void cb_filename7_i(Fl_Menu_*, void*);
static void cb_filename7(Fl_Menu_*, void*);
inline void cb_filename8_i(Fl_Menu_*, void*);
static void cb_filename8(Fl_Menu_*, void*);
inline void cb_Close_i(Fl_Menu_*, void*);
static void cb_Close(Fl_Menu_*, void*);
inline void cb_Save_i(Fl_Menu_*, void*);
static void cb_Save(Fl_Menu_*, void*);
inline void cb_Save1_i(Fl_Menu_*, void*);
static void cb_Save1(Fl_Menu_*, void*);
inline void cb_Build_i(Fl_Menu_*, void*);
static void cb_Build(Fl_Menu_*, void*);
inline void cb_Quit_i(Fl_Menu_*, void*);
static void cb_Quit(Fl_Menu_*, void*);
inline void cb_Copy_i(Fl_Menu_*, void*);
static void cb_Copy(Fl_Menu_*, void*);
inline void cb_Cu_i(Fl_Menu_*, void*);
static void cb_Cu(Fl_Menu_*, void*);
inline void cb_Delete_i(Fl_Menu_*, void*);
static void cb_Delete(Fl_Menu_*, void*);
inline void cb_Paste_i(Fl_Menu_*, void*);
static void cb_Paste(Fl_Menu_*, void*);
inline void cb_Select_i(Fl_Menu_*, void*);
static void cb_Select(Fl_Menu_*, void*);
inline void cb_Select1_i(Fl_Menu_*, void*);
static void cb_Select1(Fl_Menu_*, void*);
inline void cb_Add_i(Fl_Menu_*, void*);
static void cb_Add(Fl_Menu_*, void*);
static Fl_Menu_Item *file_settings_item;
inline void cb_file_settings_item_i(Fl_Menu_*, void*);
static void cb_file_settings_item(Fl_Menu_*, void*);
inline void cb_P_i(Fl_Menu_*, void*);
static void cb_P(Fl_Menu_*, void*);
inline void cb_Contents_i(Fl_Menu_*, void*);
static void cb_Contents(Fl_Menu_*, void*);
inline void cb_Introduction_i(Fl_Menu_*, void*);
static void cb_Introduction(Fl_Menu_*, void*);
inline void cb_Basic_i(Fl_Menu_*, void*);
static void cb_Basic(Fl_Menu_*, void*);
inline void cb_Advanced_i(Fl_Menu_*, void*);
static void cb_Advanced(Fl_Menu_*, void*);
inline void cb_Version_i(Fl_Menu_*, void*);
static void cb_Version(Fl_Menu_*, void*);
ListManager *margin_manager;
inline void cb_margin_manager_i(ListManager*, void*);
static void cb_margin_manager(ListManager*, void*);
Fl_Menu_Button *margin_menu;
static Fl_Menu_Item menu_margin_menu[];
static Fl_Menu_Item *margin_items;
inline void cb_margin_items_i(Fl_Menu_*, void*);
static void cb_margin_items(Fl_Menu_*, void*);
inline void cb_User_i(Fl_Menu_*, void*);
static void cb_User(Fl_Menu_*, void*);
inline void cb_Group_i(Fl_Menu_*, void*);
static void cb_Group(Fl_Menu_*, void*);
inline void cb_Destination_i(Fl_Menu_*, void*);
static void cb_Destination(Fl_Menu_*, void*);
inline void cb_Source_i(Fl_Menu_*, void*);
static void cb_Source(Fl_Menu_*, void*);
inline void cb_Package_i(Fl_Menu_*, void*);
static void cb_Package(Fl_Menu_*, void*);
Fl_File_Browser *list;
inline void cb_list_i(Fl_File_Browser*, void*);
static void cb_list(Fl_File_Browser*, void*);
Fl_Double_Window *file_window;
Fl_Choice *type_chooser;
inline void cb_type_chooser_i(Fl_Choice*, void*);
static void cb_type_chooser(Fl_Choice*, void*);
static Fl_Menu_Item menu_type_chooser[];
inline void cb_Regular_i(Fl_Menu_*, void*);
static void cb_Regular(Fl_Menu_*, void*);
inline void cb_Configuration_i(Fl_Menu_*, void*);
static void cb_Configuration(Fl_Menu_*, void*);
inline void cb_Manpage_i(Fl_Menu_*, void*);
static void cb_Manpage(Fl_Menu_*, void*);
inline void cb_Init_i(Fl_Menu_*, void*);
static void cb_Init(Fl_Menu_*, void*);
inline void cb_Directory_i(Fl_Menu_*, void*);
static void cb_Directory(Fl_Menu_*, void*);
inline void cb_Symbolic_i(Fl_Menu_*, void*);
static void cb_Symbolic(Fl_Menu_*, void*);
inline void cb_Removed_i(Fl_Menu_*, void*);
static void cb_Removed(Fl_Menu_*, void*);
Fl_Check_Button *upgrade_button;
inline void cb_upgrade_button_i(Fl_Check_Button*, void*);
static void cb_upgrade_button(Fl_Check_Button*, void*);
Fl_Group *perm_group;
inline void cb_perm_group_i(Fl_Group*, void*);
static void cb_perm_group(Fl_Group*, void*);
inline void cb_Permissions_i(Fl_Box*, void*);
static void cb_Permissions(Fl_Box*, void*);
Fl_Light_Button *user_read_button;
inline void cb_user_read_button_i(Fl_Light_Button*, void*);
static void cb_user_read_button(Fl_Light_Button*, void*);
Fl_Light_Button *user_write_button;
inline void cb_user_write_button_i(Fl_Light_Button*, void*);
static void cb_user_write_button(Fl_Light_Button*, void*);
Fl_Light_Button *user_exec_button;
inline void cb_user_exec_button_i(Fl_Light_Button*, void*);
static void cb_user_exec_button(Fl_Light_Button*, void*);
Fl_Light_Button *user_set_button;
inline void cb_user_set_button_i(Fl_Light_Button*, void*);
static void cb_user_set_button(Fl_Light_Button*, void*);
inline void cb_User1_i(Fl_Box*, void*);
static void cb_User1(Fl_Box*, void*);
Fl_Light_Button *group_read_button;
inline void cb_group_read_button_i(Fl_Light_Button*, void*);
static void cb_group_read_button(Fl_Light_Button*, void*);
Fl_Light_Button *group_write_button;
inline void cb_group_write_button_i(Fl_Light_Button*, void*);
static void cb_group_write_button(Fl_Light_Button*, void*);
Fl_Light_Button *group_exec_button;
inline void cb_group_exec_button_i(Fl_Light_Button*, void*);
static void cb_group_exec_button(Fl_Light_Button*, void*);
Fl_Light_Button *group_set_button;
inline void cb_group_set_button_i(Fl_Light_Button*, void*);
static void cb_group_set_button(Fl_Light_Button*, void*);
inline void cb_Group1_i(Fl_Box*, void*);
static void cb_Group1(Fl_Box*, void*);
Fl_Light_Button *other_read_button;
inline void cb_other_read_button_i(Fl_Light_Button*, void*);
static void cb_other_read_button(Fl_Light_Button*, void*);
Fl_Light_Button *other_write_button;
inline void cb_other_write_button_i(Fl_Light_Button*, void*);
static void cb_other_write_button(Fl_Light_Button*, void*);
Fl_Light_Button *other_exec_button;
inline void cb_other_exec_button_i(Fl_Light_Button*, void*);
static void cb_other_exec_button(Fl_Light_Button*, void*);
Fl_Light_Button *other_temp_button;
inline void cb_other_temp_button_i(Fl_Light_Button*, void*);
static void cb_other_temp_button(Fl_Light_Button*, void*);
inline void cb_Other_i(Fl_Box*, void*);
static void cb_Other(Fl_Box*, void*);
Fl_Input *user_field;
inline void cb_user_field_i(Fl_Input*, void*);
static void cb_user_field(Fl_Input*, void*);
Fl_Input *group_field;
inline void cb_group_field_i(Fl_Input*, void*);
static void cb_group_field(Fl_Input*, void*);
Fl_Input *src_path_field;
inline void cb_src_path_field_i(Fl_Input*, void*);
static void cb_src_path_field(Fl_Input*, void*);
Fl_Input *dst_path_field;
inline void cb_dst_path_field_i(Fl_Input*, void*);
static void cb_dst_path_field(Fl_Input*, void*);
Fl_Choice *subpackage_chooser;
inline void cb_subpackage_chooser_i(Fl_Choice*, void*);
static void cb_subpackage_chooser(Fl_Choice*, void*);
Fl_Return_Button *file_ok_button;
inline void cb_file_ok_button_i(Fl_Return_Button*, void*);
static void cb_file_ok_button(Fl_Return_Button*, void*);
Fl_Button *file_cancel_button;
inline void cb_file_cancel_button_i(Fl_Button*, void*);
static void cb_file_cancel_button(Fl_Button*, void*);
Fl_Double_Window *project_window;
Fl_Input *name_field;
Fl_Input *version_field;
Fl_Counter *version_counter;
Fl_Input *copyright_field;
Fl_Input *vendor_field;
Fl_Input *packager_field;
Fl_Input *license_field;
Fl_Input *readme_field;
Fl_Button *license_browse_button;
Fl_Button *readme_browse_button;
Fl_Browser *subpackage_list;
inline void cb_subpackage_list_i(Fl_Browser*, void*);
static void cb_subpackage_list(Fl_Browser*, void*);
inline void cb_Add1_i(Fl_Button*, void*);
static void cb_Add1(Fl_Button*, void*);
Fl_Button *delete_subpkg_button;
inline void cb_delete_subpkg_button_i(Fl_Button*, void*);
static void cb_delete_subpkg_button(Fl_Button*, void*);
Fl_Input *description_field;
Fl_Input *depends_field[4];
Fl_Input *setup_image_field;
Fl_Button *setup_image_browse_button;
inline void cb_setup_image_browse_button_i(Fl_Button*, void*);
static void cb_setup_image_browse_button(Fl_Button*, void*);
Fl_Input *setup_types_field;
Fl_Button *setup_types_browse_button;
inline void cb_setup_types_browse_button_i(Fl_Button*, void*);
static void cb_setup_types_browse_button(Fl_Button*, void*);
inline void cb_OK_i(Fl_Return_Button*, void*);
static void cb_OK(Fl_Return_Button*, void*);
inline void cb_Cancel_i(Fl_Button*, void*);
static void cb_Cancel(Fl_Button*, void*);
public:
~ListEditor();
void hide();
int modified();
int open(const char *listfile);
int save(const char *listfile);
int save();
void show();
int shown();
};
#endif