Mercurial > octave-nkf
comparison libgui/src/workspace-view.h @ 20605:734d446560a8
possibility to hide filters in history and workspace view (bug#45428)
* history_dock_widget.cc(construct): use settings file for show/hide the filter;
(~history_dock_widget): save current filter state to settings file;
(ctxMenu): add menu entry for showing/hiding the filter;
(handle_contextmenu_filter): slot for the new menu entry
* history-dock-widget.h: new slot for new menu entry, new class variables for
filter and show/hide-state
* workspace-view.cc(workspace_view): use settings file for show/hide the filter;
(~workspace_view): save current filter state to settings file;
(contextmenu_requested): add menu entry for showing/hiding the filter;
(handle_contextmenu_filter): slot for the new menu entry
* workspace-view.h: new slot for new menu entry, new class variables for
filter and show/hide-state
author | Torsten <ttl@justmail.de> |
---|---|
date | Wed, 07 Oct 2015 21:01:25 +0200 |
parents | 4197fc428c7d |
children |
comparison
equal
deleted
inserted
replaced
20603:f61c67865d9f | 20605:734d446560a8 |
---|---|
68 void handle_contextmenu_copy_value (void); | 68 void handle_contextmenu_copy_value (void); |
69 void handle_contextmenu_rename (void); | 69 void handle_contextmenu_rename (void); |
70 void handle_contextmenu_disp (void); | 70 void handle_contextmenu_disp (void); |
71 void handle_contextmenu_plot (void); | 71 void handle_contextmenu_plot (void); |
72 void handle_contextmenu_stem (void); | 72 void handle_contextmenu_stem (void); |
73 void handle_contextmenu_filter (void); | |
73 | 74 |
74 void handle_model_changed (void); | 75 void handle_model_changed (void); |
75 | 76 |
76 void copyClipboard (); | 77 void copyClipboard (); |
77 void selectAll (); | 78 void selectAll (); |
90 workspace_model *_model; | 91 workspace_model *_model; |
91 | 92 |
92 QSortFilterProxyModel _filter_model; | 93 QSortFilterProxyModel _filter_model; |
93 QCheckBox *_filter_checkbox; | 94 QCheckBox *_filter_checkbox; |
94 QComboBox *_filter; | 95 QComboBox *_filter; |
96 QWidget *_filter_widget; | |
97 bool _filter_shown; | |
98 | |
95 enum { MaxFilterHistory = 10 }; | 99 enum { MaxFilterHistory = 10 }; |
96 }; | 100 }; |
97 | 101 |
98 #endif | 102 #endif |