forked from psemiletov/tea-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrvln.h
1129 lines (777 loc) · 23.1 KB
/
rvln.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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**************************************************************************
* 2007-2018 by Peter Semiletov *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef RVLN_H
#define RVLN_H
#include <QListWidget>
#include <QComboBox>
#include <QProgressBar>
#include <QCheckBox>
#include <QSpinBox>
#include <QFontComboBox>
#include <QSessionManager>
#include <QApplication>
#include <QCoreApplication>
#include <QSplitter>
#include <QTextBrowser>
#include <QTranslator>
#include <QProcess>
#include <QProxyStyle>
#ifdef USE_QML_STUFF
#include <QQmlEngine>
#include <QQuickWindow>
#endif
#ifdef PRINTER_ENABLE
#include <QPrinter>
#endif
#include "document.h"
#include "fman.h"
#include "calendar.h"
#include "shortcuts.h"
#include "img_viewer.h"
#ifdef SPELLCHECK_ENABLE
#include "spellchecker.h"
#endif
class MyProxyStyle: public QProxyStyle
{
public:
static bool b_altmenu;
static int cursor_blink_time;
int styleHint (StyleHint hint, const QStyleOption *option = 0,
const QWidget *widget = 0, QStyleHintReturn *returnData = 0) const
{
if (hint == QStyle::SH_ItemView_ActivateItemOnSingleClick)
return 0;
if (! b_altmenu && hint == QStyle::SH_MenuBar_AltKeyNavigation)
return 0;
return QProxyStyle::styleHint (hint, option, widget, returnData);
}
MyProxyStyle (QStyle *style = 0);
};
#if QT_VERSION >= 0x050000
class QStyleHints
{
public:
int cursorFlashTime() const
{
return MyProxyStyle::cursor_blink_time;
}
};
#endif
#ifdef USE_QML_STUFF
class CQQuickWindow: public QQuickWindow
{
Q_OBJECT
public:
QString id;
CQQuickWindow (QWindow * parent = 0): QQuickWindow (parent) {}
~CQQuickWindow() {}
protected:
bool event (QEvent *event);
};
#endif
#ifdef USE_QML_STUFF
class CPluginListItem: public QObject
{
Q_OBJECT
public:
QString id;
CQQuickWindow *window;
CPluginListItem (const QString &plid, CQQuickWindow *wnd);
// ~CPluginListItem() {}
};
#endif
class CFSizeFName: public QObject
{
Q_OBJECT
public:
qint64 size;
QString fname;
CFSizeFName (qint64 sz, const QString &fn):
size (sz),
fname (fn) {}
};
class CMarkupPair: public QObject
{
Q_OBJECT
public:
QHash <QString, QString> pattern;
};
class CStrIntPair: public QObject
{
Q_OBJECT
public:
QString string_value;
int int_value;
CStrIntPair (const QString &s, int i);
};
class CDarkerWindow: public QWidget
{
Q_OBJECT
QSlider *slider;
public:
CDarkerWindow();
protected:
void closeEvent (QCloseEvent *event);
public slots:
void slot_valueChanged (int value);
};
class CAboutWindow: public QWidget
{
Q_OBJECT
public:
QLabel *logo;
CAboutWindow();
protected:
void closeEvent (QCloseEvent *event);
public slots:
void update_image();
};
class CTextListWnd: public QWidget
{
Q_OBJECT
public:
QListWidget *list;
CTextListWnd (const QString &title, const QString &label_text);
protected:
void closeEvent (QCloseEvent *event);
};
class rvln: public QMainWindow
{
Q_OBJECT
public:
rvln();
~rvln() {}
#ifdef USE_QML_STUFF
QQmlEngine *qml_engine;
#endif
QStringList sl_places_bmx;
QStringList sl_urls;
QStringList sl_charsets;
QStringList sl_last_used_charsets;
QStringList sl_fif_history;
int fm_entry_mode;
QDate date1;
QDate date2;
bool portable_mode;
CLogMemo *log;
QAction *last_action;
CShortcuts *shortcuts;
CFMan *fman;
CImgViewer *img_viewer;
#ifdef SPELLCHECK_ENABLE
ASpellchecker *spellchecker;
QStringList spellcheckers;
QString cur_spellchecker;
#endif
int icon_size;
bool b_preview;
bool capture_to_storage_file;
int idx_tab_calendar;
int idx_tab_edit;
int idx_tab_tune;
int idx_tab_fman;
int idx_tab_learn;
int idx_tab_keyboard;
int idx_prev;
int fman_find_idx;
QList <QStandardItem *> l_fman_find;
bool ui_update;
QString fname_storage_file;
QString fname_stylesheet;
QString man_search_value;
QString markup_mode;
QHash <QString, CMarkupPair*> hs_markup;
QHash <QString, QString> programs;
QHash <QString, QString> places_bookmarks;
QHash <int, QString> moon_phase_algos;
QTranslator myappTranslator;
QTranslator qtTranslator;
QDir dir_lv;
#ifdef PRINTER_ENABLE
QPrinter printer;
#endif
QString opt_shortcuts_string_to_find;
QString fman_fname_to_find;
QString dir_user_dict;
QString dir_profiles;
QString dir_last;
QString dir_config;
QString dir_templates;
QString dir_sessions;
QString dir_hls;
QString dir_themes;
//#if QT_VERSION >= 0x050000
QString dir_plugins;
//#endif
QString dir_snippets;
QString dir_scripts;
QString dir_palettes;
QString dir_tables;
QString dir_days;
QString fname_def_palette;
QString fname_fif;
QString fname_bookmarks;
QString fname_programs;
QString fname_places_bookmarks;
QString bookmarks;
QString fname_crapbook;
QString fname_tempfile;
QString fname_tempparamfile;
QComboBox *cmb_fif;
QToolBar *tb_fman_dir;
QLabel *l_fman_preview;
QLabel *l_charset;
QLabel *l_status;
QProgressBar *pb_status;
QLineEdit *ed_spellcheck_path;
QLineEdit *ed_aspellcheck_path;
QCheckBox *cb_use_qregexpsyntaxhl;
#if defined(Q_OS_LINUX)
QCheckBox *cb_use_joystick;
#endif
QCheckBox *cb_right_to_left;
QCheckBox *cb_wordwrap;
QCheckBox *cb_show_linenums;
QCheckBox *cb_hl_current_line;
QCheckBox *cb_show_margin;
QSpinBox *spb_margin_pos;
QSpinBox *spb_fuzzy_q;
QLineEdit *ed_label_end;
QLineEdit *ed_label_start;
QCheckBox *cb_session_restore;
QCheckBox *cb_use_hl_wrap;
QCheckBox *cb_hl_enabled;
QCheckBox *cb_hl_brackets;
QCheckBox *cb_auto_indent;
QCheckBox *cb_spaces_instead_of_tabs;
QCheckBox *cb_cursor_xy_visible;
QSpinBox *spb_tab_sp_width;
QCheckBox *cb_center_on_cursor;
QCheckBox *cb_full_path_at_window_title;
QCheckBox *cb_use_trad_dialogs;
QCheckBox *cb_start_on_sunday;
QCheckBox *cb_northern_hemisphere;
QComboBox *cmb_moon_phase_algos;
QComboBox *cmb_output_image_fmt;
QCheckBox *cb_output_image_flt;
QComboBox *cmb_tea_icons;
QComboBox *cmb_ui_langs;
QSpinBox *spb_img_quality;
QCheckBox *cb_zip_after_scale;
QCheckBox *cb_exif_rotate;
QCheckBox *cb_zor_use_exif;
protected:
void closeEvent (QCloseEvent *event);
bool fman_tv_eventFilter (QObject *obj, QEvent *event);
public slots:
/*************************
main window callbacks
*************************/
void repeat();
void receiveMessage (const QString &msg);
void receiveMessageShared (const QStringList& msg);
void view_use_theme();
void select_label();
void update_labels_menu();
void update_labels_list();
void fm_full_info();
void fm_hashsum_md5();
void fm_hashsum_md4();
void fm_hashsum_sha1();
void fman_unpack_zip();
void fman_zip_info();
void fman_refresh();
void fman_rename();
void fman_delete();
void fman_zeropad();
void fman_del_n_first_chars();
void fman_multreplace();
void fman_apply_template();
void fman_drives_changed (const QString & path);
void fman_current_file_changed (const QString &full_path, const QString &just_name);
void fman_file_activated (const QString &full_path);
void fman_dir_changed (const QString &full_path);
void fman_fname_entry_confirm();
void fman_create_dir();
void fman_add_bmk();
void fman_del_bmk();
void fman_open();
void fman_home();
void fman_places_itemActivated (QListWidgetItem *item);
void fman_select_by_regexp();
void fman_deselect_by_regexp();
void fman_count_lines_in_selected_files();
void cb_button_saves_as();
void pageChanged (int index);
// void tab_options_pageChanged (int index);
#ifdef PRINTER_ENABLE
void file_print();
#endif
void newFile();
void open();
void open_at_cursor();
void rename_selected();
void file_reload();
void file_reload_enc_itemDoubleClicked (QListWidgetItem *item);
void file_reload_enc();
void file_open_bookmarks_file();
void file_open_programs_file();
void file_find_obsolete_paths();
void file_last_opened();
void file_open_bookmark();
void file_open_program();
void file_add_to_bookmarks();
void file_crapbook();
void file_notes();
void file_use_template();
void file_use_snippet();
void file_use_palette();
void file_use_hl();
void file_open_session();
void file_save_version();
void file_save_bak();
void test();
void clipboard_dataChanged();
void view_use_profile();
void cal_set_date_a();
void cal_set_date_b();
void cal_set_to_current();
void cal_moon_mode();
void cal_gen_mooncal();
void cal_diff_days();
void cal_remove();
void fn_sum_by_last_col();
void fn_insert_cpp();
void fn_insert_c();
void fn_insert_template_html5();
bool save();
bool saveAs();
void toggle_wrap();
void darker();
void about();
void close_current();
void ed_block_start();
void ed_block_end();
void ed_block_copy();
void ed_block_paste();
void ed_block_cut();
void ed_copy();
void ed_paste();
void ed_cut();
void ed_undo();
void ed_redo();
void ed_clear();
void ed_indent();
void ed_unindent();
void ed_comment();
void set_as_storage_file();
void copy_to_storage_file();
void capture_clipboard_to_storage_file();
void upCase();
void dnCase();
void edit_copy_current_fname();
void fn_count();
void fn_count_rx();
void fn_enum();
void fn_filter_with_regexp();
void fn_text_stat();
void fn_antispam_email();
void fn_apply_to_each_line();
void fn_reverse();
void fn_escape();
void fn_evaluate();
void fn_sort_casecare();
void fn_sort_casecareless();
void fn_sort_casecare_sep();
void fn_sort_latex_table_by_col_abc();
void fn_table_swap_cells();
void fn_table_delete_cells();
void fn_table_copy_cells();
void fn_flip_a_list();
void fn_flip_a_list_sep();
void fn_insert_loremipsum();
void fn_insert_template_html();
void fn_run_script();
void cb_script_finished (int exitCode, QProcess::ExitStatus exitStatus);
void fn_number_arabic_to_roman();
void fn_number_roman_to_arabic();
void fn_number_dms2dc();
void fn_number_dd2dms();
void fn_filter_rm_less_than();
void fn_filter_rm_greater_than();
void fn_filter_rm_duplicates();
void fn_filter_rm_empty();
void fn_filter_delete_before_sep();
void fn_filter_delete_after_sep();
void fn_rm_formatting();
void fn_rm_compress();
void text_compare_two_strings();
void fn_convert_quotes_angle();
void fn_convert_quotes_curly();
void fn_convert_quotes_tex_curly();
void fn_convert_quotes_tex_angle_01();
void fn_convert_quotes_tex_angle_02();
void fn_get_words_count();
void fn_unitaz_abc();
void fn_extract_words();
void fn_morse_from_en();
void fn_morse_to_en();
void fn_morse_from_ru();
void fn_morse_to_ru();
void fn_insert_date();
void fn_insert_time();
void fn_rm_formatting_at_each_line();
void fn_rm_trailing_spaces();
void fn_strip_html_tags();
void fn_number_decimal_to_binary();
void fn_number_flip_bits();
void fn_binary_to_decimal();
void remove_formatting();
#ifdef SPELLCHECK_ENABLE
void fn_change_spell_lang();
void fn_spell_check();
void fn_spell_suggest_callback();
void fn_spell_add_to_dict();
void fn_remove_from_dict();
void fn_spell_suggest();
void cmb_spellchecker_currentIndexChanged (const QString &text);
#ifdef HUNSPELL_ENABLE
void pb_choose_hunspell_path_clicked();
#endif
#ifdef ASPELL_ENABLE
#if defined(Q_OS_WIN) || defined (Q_OS_OS2)
void pb_choose_aspell_path_clicked();
#endif
#endif
#endif
void scale_image();
void search_mark_all();
void search_unmark();
void search_in_files_results_dclicked (QListWidgetItem *item);
void search_in_files();
void calendar_clicked (const QDate &date);
void calendar_activated (const QDate &date);
void mrkup_bold();
void mrkup_italic();
void mrkup_underline();
void mrkup_link();
void mrkup_para();
void mrkup_preview_color();
void mrkup_br();
void mrkup_nbsp();
void mrkup_tags_to_entities();
void mrkup_mode_choosed();
void mrkup_header();
void mrkup_align();
void mrkup_align_center();
void mrkup_align_left();
void mrkup_align_right();
void mrkup_align_justify();
void mrkup_document_weight();
void markup_ins_image();
void mrkup_color();
void mrkup_text_to_html();
void search_fuzzy_mode();
void search_regexp_mode();
void search_whole_words_mode();
void search_from_cursor_mode();
void search_find();
void search_find_next();
void search_find_prev();
void search_replace_with();
void search_replace_all();
void search_replace_all_at_ofiles();
void view_preview_in_bro();
void view_hide_error_marks();
void view_toggle_fs();
void view_stay_on_top();
void instr_font_gallery();
void nav_goto_line();
void nav_goto_right_tab();
void nav_goto_left_tab();
void nav_toggle_hs();
void nav_save_pos();
void nav_goto_pos();
void nav_focus_to_fif();
void nav_focus_to_editor();
void help_show_gpl();
void help_show_news();
void help_show_changelog();
void help_show_todo();
void session_save_as();
void main_tab_page_changed (int index);
void calendar_currentPageChanged (int year, int month);
void man_find_find();
void man_find_next();
void man_find_prev();
void profile_save_as();
void fman_mk_gallery();
void indent_by_first_line();
void process_readyReadStandardOutput();
void fn_remove_by_regexp();
void fn_use_table();
void fman_naventry_confirm();
void fman_img_conv_by_side();
void fman_img_conv_by_percent();
void fman_create_zip();
void fman_add_to_zip();
void fman_save_zip();
void fman_preview_image();
void set_eol_unix();
void set_eol_win();
void set_eol_mac();
void fn_stat_words_lengths();
void guess_enc();
void cal_add_days();
void cal_add_months();
void cal_add_years();
void recentoff();
/*************************
prefs window callbacks
*************************/
#if defined(Q_OS_LINUX)
void cb_use_joystick_stateChanged (int state);
#endif
// void cmb_ui_langs_currentIndexChanged (const QString &text);
void cb_altmenu_stateChanged (int state);
void cmb_ui_tabs_currentIndexChanged (int i);
void cmb_docs_tabs_currentIndexChanged (int i);
void cmb_icon_sizes_currentIndexChanged (const QString &text);
void cmb_tea_icons_currentIndexChanged (const QString &text);
void pb_assign_hotkey_clicked();
void pb_remove_hotkey_clicked();
void slot_lv_menuitems_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous);
void slot_app_fontname_changed (const QString &text);
void slot_editor_fontname_changed (const QString &text);
void slot_font_size_changed (int i);
void slot_logmemo_fontname_changed (const QString &text);
void slot_logmemo_font_size_changed (int i);
void slot_app_font_size_changed (int i);
void slot_style_currentIndexChanged (const QString &text);
#ifdef USE_QML_STUFF
void fn_use_plugin();
#endif
public:
/*************************
main window widgets
*************************/
QSplitter *mainSplitter;
QTextBrowser *man;
QString charset;
QTabWidget *main_tab_widget;
QTabWidget *tab_options;
QTabWidget *tab_browser;
QTabWidget *tab_widget;
QLineEdit *fif;
QMenu *fileMenu;
QMenu *editMenu;
QMenu *menu_cal;
QMenu *menu_cal_add;
QMenu *menu_cal_sub;
QMenu *menu_cal_diff;
QMenu *menu_file_edit_bookmarks;
QMenu *menu_file_configs;
QMenu *menu_file_sessions;
QMenu *menu_file_actions;
QMenu *menu_file_bookmarks;
QMenu *menu_file_templates;
QMenu *menu_programs;
QMenu *menu_fn_snippets;
QMenu *menu_fn_tables;
QMenu *menu_view_palettes;
QMenu *menu_view_hl;
QMenu *menu_view_profiles;
QMenu *menu_fn_sessions;
QMenu *menu_fn_scripts;
#ifdef USE_QML_STUFF
QMenu *menu_fn_plugins;
#endif
QMenu *menu_view_themes;
QMenu *menu_markup;
QMenu *menu_functions;
QMenu *menu_functions_case;
QMenu *menu_file_recent;
QMenu *menu_search;
QMenu *menu_nav;
QMenu *menu_instr;
QMenu *menu_fm;
QMenu *menu_fm_file_ops;
QMenu *menu_fm_multi_rename;
QMenu *menu_fm_file_infos;
QMenu *menu_fm_img_conv;
QMenu *menu_fm_zip;
QMenu *menu_view;
QMenu *menu_spell_langs;
QMenu *helpMenu;
QMenu *menu_labels;
QToolBar *fileToolBar;
QToolBar *editToolBar;
QToolBar *filesToolBar;
QToolBar *statusToolBar;
QAction *act_labels;
QAction *act_test;
QAction *filesAct;
QAction *newAct;
QAction *openAct;
QAction *saveAct;
QAction *saveAsAct;
QAction *exitAct;
QAction *cutAct;
QAction *copyAct;
QAction *closeAct;
QAction *undoAct;
QAction *redoAct;
QAction *pasteAct;
QAction *aboutAct;
QAction *aboutQtAct;
QAction *menu_find_whole_words;
QAction *menu_find_from_cursor;
QAction *menu_find_case;
QAction *menu_find_regexp;
QAction *menu_find_fuzzy;
QAction *menu_recent_off;
QWidget *w_right;
QLineEdit *ed_fman_fname;
QComboBox *cb_fman_codecs;
QComboBox *cb_fman_drives;
QComboBox *cmb_spellcheckers;
QComboBox *cmb_styles;
QComboBox *cmb_icon_size;
CCalendarWidget *calendar;
/*************************
prefs window widgets
*************************/
QLineEdit *ed_img_post_proc;
QLineEdit *ed_date_format;
QLineEdit *ed_time_format;
QLineEdit *ed_side_size;
QLineEdit *ed_link_options;
QLineEdit *ed_cols_per_row;
QLineEdit *ed_locale_override;
QLineEdit *ed_img_viewer_override;
QSpinBox *spb_cursor_blink_time;
QSpinBox *spb_cursor_width;
CShortcutEntry *ent_shtcut;
QListWidget *lv_menuitems;
QFontComboBox *cmb_font_name;
QSpinBox *spb_font_size;
QFontComboBox *cmb_logmemo_font_name;
QSpinBox *spb_logmemo_font_size;
QFontComboBox *cmb_app_font_name;
QSpinBox *spb_app_font_size;
QLineEdit *ed_fman_path;
QListWidget *lv_places;
QSplitter *spl_fman;
QCheckBox *cb_altmenu;
QCheckBox *cb_wasd;
QCheckBox *cb_auto_img_preview;
QCheckBox *cb_override_locale;
QCheckBox *cb_override_img_viewer;
QComboBox *cmb_cmdline_default_charset;
QComboBox *cmb_zip_charset_in;
QComboBox *cmb_zip_charset_out;
//main window functions
QAction* add_to_menu (QMenu *menu,
const QString &caption,