forked from psemiletov/tea-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tea.h
993 lines (822 loc) · 23.2 KB
/
tea.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
/**************************************************************************
* 2007-2021 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 TEA_H
#define TEA_H
#include <QListWidget>
#include <QComboBox>
#include <QProgressBar>
#include <QCheckBox>
#include <QSpinBox>
#include <QApplication>
#include <QCoreApplication>
#include <QSplitter>
#include <QTextBrowser>
#include <QTranslator>
#include <QProcess>
#include <QProxyStyle>
//#include <QMap>
#ifdef PRINTER_ENABLE
#include <QPrinter>
#endif
#include "document.h"
#include "fman.h"
#include "calendar.h"
#include "shortcuts.h"
#include "img_viewer.h"
#include "spellchecker.h"
class CDarkerWindow: public QWidget
{
Q_OBJECT
QSlider *slider;
public:
CDarkerWindow();
protected:
void closeEvent (QCloseEvent *event);
public slots:
void slot_valueChanged (int value);
};
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): QProxyStyle (style){};
};
#if QT_VERSION >= 0x050000
class QStyleHints
{
public:
int cursorFlashTime() const
{
return MyProxyStyle::cursor_blink_time;
}
};
#endif
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);
~CTextListWnd();
protected:
void closeEvent (QCloseEvent *event);
};
class CTEA: public QMainWindow
{
Q_OBJECT
public:
/*
=========================
Variables
=========================
*/
QString charset;
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;
QObject *last_action;
CShortcuts *shortcuts;
CFMan *fman;
CImgViewer *img_viewer;
CSpellchecker *spellchecker;
QStringList spellcheckers;
QString cur_spellchecker;
QString theme_dir;
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;
//QMap <int, QString> moon_phase_algos;
QTranslator transl_app;
QTranslator transl_system;
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_config;
QString dir_templates;
QString dir_sessions;
QString dir_hls;
QString dir_themes;
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;
/*
===========================
Main menu items
===========================
*/
QMenu *menu_file;
QMenu *menu_file_actions;
QMenu *menu_file_recent;
QMenu *menu_file_bookmarks;
QMenu *menu_file_edit_bookmarks;
QMenu *menu_file_templates;
QMenu *menu_file_sessions;
QMenu *menu_file_configs;
QMenu *menu_edit;
QMenu *menu_ide;
QMenu *menu_cal;
QMenu *menu_cal_add;
QMenu *menu_cal_sub;
QMenu *menu_cal_diff;
QMenu *menu_programs;
QMenu *menu_fn_snippets;
QMenu *menu_fn_tables;
QMenu *menu_view_palettes;
QMenu *menu_view_profiles;
QMenu *menu_fn_sessions;
QMenu *menu_fn_scripts;
QMenu *menu_view_themes;
QMenu *menu_markup;
QMenu *menu_functions;
QMenu *menu_functions_case;
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_fm_checksums;
QMenu *menu_view;
QMenu *menu_spell_langs;
QMenu *helpMenu;
QMenu *menu_labels;
QToolBar *fileToolBar;
QToolBar *editToolBar;
QToolBar *filesToolBar;
QToolBar *statusToolBar;
QToolBar *fifToolBar;
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;
/*
=========================
Main window widgets
=========================
*/
QSplitter *mainSplitter;
QTextBrowser *man;
QTabWidget *main_tab_widget;
QTabWidget *tab_options;
QTabWidget *tab_browser;
QTabWidget *tab_editor;
QLineEdit *fif;
QWidget *w_right;
QLineEdit *ed_fman_fname;
QComboBox *cb_fman_codecs;
QComboBox *cb_fman_drives;
CCalendarWidget *calendar;
/*
==============================
Main tab UI elements
==============================
*/
QComboBox *cmb_fif;
QLabel *l_status;
QProgressBar *pb_status;
/*
==============================
FileManager tab UI elements
==============================
*/
QLineEdit *ed_fman_path;
QListWidget *lv_places;
QSplitter *spl_fman;
QToolBar *tb_fman_dir;
QLabel *l_fman_preview;
QLabel *l_charset;
/*
=============================================
Preferences tab :: Interface page UI elements
=============================================
*/
QComboBox *cmb_ui_mode;
QComboBox *cmb_lng;
QComboBox *cmb_styles;
QCheckBox *cb_fif_at_toolbar;
QComboBox *cmb_icon_size;
QComboBox *cmb_tea_icons;
QCheckBox *cb_show_linenums;
QCheckBox *cb_wordwrap;
QCheckBox *cb_hl_enabled;
QCheckBox *cb_hl_current_line;
QCheckBox *cb_hl_brackets;
QCheckBox *cb_auto_indent;
QCheckBox *cb_spaces_instead_of_tabs;
QSpinBox *spb_tab_sp_width;
QCheckBox *cb_cursor_xy_visible;
QCheckBox *cb_center_on_cursor;
QSpinBox *spb_cursor_blink_time;
QSpinBox *spb_cursor_width;
QCheckBox *cb_show_margin;
QSpinBox *spb_margin_pos;
QCheckBox *cb_use_hl_wrap;
QCheckBox *cb_full_path_at_window_title;
/*
=============================================
Preferences tab :: Common page UI elements
=============================================
*/
QCheckBox *cb_start_on_sunday;
QCheckBox *cb_northern_hemisphere;
QComboBox *cmb_moon_phase_algos;
QComboBox *cmb_cmdline_default_charset;
QComboBox *cmb_zip_charset_in;
QComboBox *cmb_zip_charset_out;
QCheckBox *cb_altmenu;
QCheckBox *cb_wasd;
#if defined(JOYSTICK_SUPPORTED)
QCheckBox *cb_use_joystick;
#endif
QCheckBox *cb_auto_img_preview;
QCheckBox *cb_session_restore;
QCheckBox *cb_use_trad_dialogs;
QCheckBox *cb_use_enca_for_charset_detection;
QCheckBox *cb_override_img_viewer;
QLineEdit *ed_img_viewer_override;
/*
=============================================
Preferences tab :: Functions page UI elements
=============================================
*/
QLineEdit *ed_label_end;
QLineEdit *ed_label_start;
QLineEdit *ed_date_format;
QLineEdit *ed_time_format;
#if defined (HUNSPELL_ENABLE) || defined (ASPELL_ENABLE)
QComboBox *cmb_spellcheckers;
#endif // SPELLCHECKERS ENABLED
QLineEdit *ed_spellcheck_path;
QLineEdit *ed_aspellcheck_path;
QSpinBox *spb_fuzzy_q;
/*
=============================================
Preferences tab :: Images page UI elements
=============================================
*/
QComboBox *cmb_output_image_fmt;
QCheckBox *cb_output_image_flt;
QSpinBox *spb_img_quality;
QCheckBox *cb_zip_after_scale;
QCheckBox *cb_exif_rotate;
QLineEdit *ed_side_size;
QLineEdit *ed_link_options;
QLineEdit *ed_cols_per_row;
QCheckBox *cb_zor_use_exif;
/*
=============================================
Preferences tab :: Keyboard page UI elements
=============================================
*/
CShortcutEntry *ent_shtcut;
QListWidget *lv_menuitems;
/*
====================================
Application stuff inits and updates
====================================
*/
public:
CTEA();
~CTEA() {};
void handle_args();
void create_paths();
#if defined (HUNSPELL_ENABLE) || defined (ASPELL_ENABLE)
void setup_spellcheckers();
void create_spellcheck_menu();
#endif
void create_main_widget_splitter();
void create_main_widget_docked();
void create_actions();
void create_menus();
void create_options();
void create_calendar();
void create_toolbars();
void create_manual();
void create_fman();
void create_markup_hash();
void update_stylesheet (const QString &f);
void update_styles();
void update_dyn_menus();
void update_fonts();
void update_bookmarks();
void update_templates();
void update_snippets();
void update_sessions();
void update_palettes();
void update_labels_menu();
void update_themes();
void update_hls();
void update_tables();
void update_scripts();
void update_places_bookmarks();
void update_programs();
void update_logmemo_palette();
void update_charsets();
void update_profiles();
void opt_update_keyb();
void read_settings();
void write_settings();
void read_search_options();
void write_search_options();
void calendar_update();
// void create_moon_phase_algos();
/*
===========================
Application misc. methods
===========================
*/
QHash <QString, QString> load_eclipse_theme_xml (const QString &fname);
void load_palette (const QString &fileName);
void fman_convert_images (bool by_side, int value);
QTextDocument::FindFlags get_search_options();
Q_INVOKABLE QString fif_get_text();
QAction* add_to_menu (QMenu *menu,
const QString &caption,
const char *method,
const QString &shortkt = QString(),
const QString &iconpath = QString()
);
QIcon get_theme_icon (const QString &name);
QString get_theme_icon_fname (const QString &name);
void leaving_options();
void add_to_last_used_charsets (const QString &s);
void count_substring (bool use_regexp);
void run_unitaz (int mode);
void markup_text (const QString &mode);
void fman_items_select_by_regexp (bool mode);
void fn_filter_delete_by_sep (bool mode);
void fman_find();
void fman_find_next();
void fman_find_prev();
void opt_shortcuts_find();
void opt_shortcuts_find_next();
void opt_shortcuts_find_prev();
void idx_tab_edit_activate();
void idx_tab_calendar_activate();
void idx_tab_tune_activate();
void idx_tab_fman_activate();
void idx_tab_learn_activate();
void man_find_find();
void man_find_next();
void man_find_prev();
protected:
void closeEvent (QCloseEvent *event);
void dragEnterEvent (QDragEnterEvent *event);
void dropEvent (QDropEvent *event);
public slots:
/*
===========================
Main window slots
===========================
*/
void pageChanged (int index);
void logmemo_double_click (const QString &txt);
void receiveMessage (const QString &msg);
void receiveMessageShared (const QStringList& msg);
/*
===================
File manager slots
===================
*/
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_naventry_confirm();
void fman_add_bmk();
void fman_del_bmk();
void fman_open();
void fman_places_itemActivated (QListWidgetItem *item);
void cb_button_saves_as();
/*
===================
Main menu callbacks
===================
*/
/*
===================
File menu callbacks
===================
*/
void test();
void file_new();
void file_open();
void file_open_at_cursor();
void file_last_opened();
void file_crapbook();
void file_notes();
bool file_save();
bool file_save_as();
void file_save_bak();
void file_save_version();
void file_session_save_as();
void file_reload();
void file_reload_enc_itemDoubleClicked (QListWidgetItem *item);
void file_reload_enc();
void file_set_eol_unix();
void file_set_eol_win();
void file_set_eol_mac();
#ifdef PRINTER_ENABLE
void file_print();
#endif
void file_add_to_bookmarks();
void file_find_obsolete_paths();
void file_open_bookmarks_file();
void file_open_programs_file();
void file_open_bookmark();
void file_use_template();
void file_open_session();
void file_recent_off();
void file_close();
/*
===================
Edit menu callbacks
===================
*/
void ed_copy();
void ed_paste();
void ed_cut();
void ed_block_start();
void ed_block_end();
void ed_block_copy();
void ed_block_paste();
void ed_block_cut();
void ed_copy_current_fname();
void ed_undo();
void ed_redo();
void ed_indent();
void ed_unindent();
void ed_indent_by_first_line();
void ed_comment();
void ed_set_as_storage_file();
void ed_copy_to_storage_file();
void ed_capture_clipboard_to_storage_file();
/*
===================
Markup menu callbacks
===================
*/
void mrkup_mode_choosed();
void mrkup_header();
void mrkup_align_center();
void mrkup_align_left();
void mrkup_align_right();
void mrkup_align_justify();
void mrkup_bold();
void mrkup_italic();
void mrkup_underline();
void mrkup_link();
void mrkup_para();
void mrkup_color();
void mrkup_br();
void mrkup_nbsp();
void markup_ins_image();
void mrkup_text_to_html();
void mrkup_tags_to_entities();
void mrkup_antispam_email();
void mrkup_document_weight();
void mrkup_preview_color();
void mrkup_strip_html_tags();
void mrkup_rename_selected();
/*
===================
Search menu callbacks
===================
*/
void search_find();
void search_find_next();
void search_find_prev();
void search_mark_all();
void search_unmark();
void search_in_files_results_dclicked (QListWidgetItem *item);
void search_in_files();
void search_whole_words_mode();
void search_from_cursor_mode();
void search_regexp_mode();
void search_fuzzy_mode();
void search_replace_with();
void search_replace_all();
void search_replace_all_at_ofiles();
/*
===================
Fn menu callbacks
===================
*/
void fn_repeat();
void fn_scale_image();
void fn_use_snippet();
void fn_run_script();
void cb_script_finished (int exitCode, QProcess::ExitStatus exitStatus);
void fn_use_table();
void fn_insert_loremipsum();
void fn_insert_template_tea();
void fn_insert_template_html();
void fn_insert_template_html5();
void fn_insert_cpp();
void fn_insert_c();
void fn_insert_date();
void fn_insert_time();
void fn_case_up();
void fn_case_down();
void fn_sort_casecare();
void fn_sort_casecareless();
void fn_sort_casecare_sep();
void fn_sort_length();
void fn_flip_a_list();
void fn_flip_a_list_sep();
void fn_cells_latex_table_sort_by_col_abc();
void fn_cells_swap_cells();
void fn_cells_delete_by_col();
void fn_cells_copy_by_col();
void fn_filter_rm_duplicates();
void fn_filter_rm_empty();
void fn_filter_rm_less_than();
void fn_filter_rm_greater_than();
void fn_filter_delete_before_sep();
void fn_filter_delete_after_sep();
void fn_filter_with_regexp();
void fn_filter_by_repetitions();
void fn_math_evaluate();
void fn_math_number_arabic_to_roman();
void fn_math_number_roman_to_arabic();
void fn_math_number_dec_to_bin();
void fn_math_number_bin_to_dec();
void fn_math_number_flip_bits();
void fn_math_sum_by_last_col();
void fn_math_enum();
void fn_math_number_dms2dc();
void fn_math_number_dd2dms();
void fn_morse_from_ru();
void fn_morse_to_ru();
void fn_morse_from_en();
void fn_morse_to_en();
void fn_analyze_text_stat();
void fn_analyze_extract_words();
void fn_analyze_stat_words_lengths();
void fn_analyze_count();
void fn_analyze_count_rx();
void fn_analyze_get_words_count();
void fn_analyze_unitaz_abc();
void fn_analyze_unitaz_len();
void fn_text_apply_to_each_line();
void fn_text_reverse();
void fn_text_escape();
void fn_text_remove_formatting();
void fn_text_compress();
void fn_text_compare_two_strings();
void fn_text_remove_formatting_at_each_line();
void fn_text_remove_trailing_spaces();
void fn_text_anagram();
void fn_text_regexp_match_check();
void fn_quotes_to_angle();
void fn_quotes_curly();
void fn_quotes_tex_curly();
void fn_quotes_tex_angle_01();
void fn_quotes_tex_angle_02();
#if defined (HUNSPELL_ENABLE) || defined (ASPELL_ENABLE)
void fn_change_spell_lang();
void fn_spell_check();
void fn_spell_suggest_callback();
void fn_spell_add_to_dict();
void fn_spell_remove_from_dict();
void fn_spell_suggest();
#endif // SPELLCHECKERS ENABLED
/*
====================
Cal menu
===================
*/
void cal_moon_mode();
void cal_set_date_a();
void cal_set_date_b();
void cal_add_days();
void cal_add_months();
void cal_add_years();
void cal_set_to_current();
void cal_gen_mooncal();
void cal_diff_days();
void cal_remove();
/*
===================
Run menu callbacks
===================
*/
/*
===================
IDE menu callbacks
===================
*/
void ide_run();
void ide_build();
void ide_clean();
void ide_toggle_hs();
/*
===================
Nav menu callbacks
===================
*/
void nav_save_pos();
void nav_goto_pos();
void nav_goto_line();
void nav_goto_right_tab();
void nav_goto_left_tab();
void nav_focus_to_fif();
void nav_focus_to_editor();
void nav_labels_update_list();
/*
===================
Fm menu callbacks
===================
*/
void fman_multi_rename_zeropad();
void fman_multi_rename_del_n_first_chars();
void fman_multi_rename_replace();
void fman_multi_rename_apply_template();
void fman_fileop_create_dir();
void fman_fileop_rename();
void fman_fileop_delete();
void fm_fileinfo_info();
void fman_fileinfo_count_lines_in_selected_files();
void fman_zip_create();
void fman_zip_add();
void fman_zip_save();
void fman_zip_info();
void fman_zip_unpack();
void fman_img_conv_by_side();
void fman_img_conv_by_percent();
void fman_img_make_gallery();
void fman_home();
void fman_refresh();
void fman_preview_image();
void fman_select_by_regexp();
void fman_deselect_by_regexp();
/*
===================
View menu callbacks
===================
*/
void view_use_theme();
void view_use_palette();
void view_use_profile();
void view_profile_save_as();
void view_toggle_wrap();
void view_hide_error_marks();
void view_toggle_fs();
void view_stay_on_top();
void view_darker();
/*-----------------------------*/
/*
===================
? menu callbacks
===================
*/
void help_show_about();
void help_show_news();
void help_show_todo();
void help_show_changelog();
void help_show_gpl();
/*
=====================
Misc callbacks
=====================
*/
void select_label();
void run_program();
void guess_enc();
void clipboard_dataChanged();
void main_tab_page_changed (int index);
void calendar_clicked (const QDate &date);
void calendar_activated (const QDate &date);
void calendar_currentPageChanged (int year, int month);
void process_readyReadStandardOutput();
/*
====================
Tune page callbacks
====================
*/
#if defined(JOYSTICK_SUPPORTED)
void cb_use_joystick_stateChanged (int state);
#endif
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 (int i);
void cmb_tea_icons_currentIndexChanged (int i);
void pb_assign_hotkey_clicked();
void pb_remove_hotkey_clicked();
void slot_lv_menuitems_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous);
void slot_font_logmemo_select();
void slot_font_interface_select();
void slot_font_editor_select();
void slot_style_currentIndexChanged (int);
#if defined (HUNSPELL_ENABLE) || defined (ASPELL_ENABLE)
void cmb_spellchecker_currentIndexChanged (int);
#endif
#ifdef HUNSPELL_ENABLE
void pb_choose_hunspell_path_clicked();
#endif
#ifdef ASPELL_ENABLE
void pb_choose_aspell_path_clicked();
#endif
};
#endif