Mercurial > octave-nkf
comparison libgui/src/history-dock-widget.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 |
---|---|
65 | 65 |
66 void handle_double_click (QModelIndex modelIndex); | 66 void handle_double_click (QModelIndex modelIndex); |
67 void handle_contextmenu_copy (bool flag); | 67 void handle_contextmenu_copy (bool flag); |
68 void handle_contextmenu_evaluate (bool flag); | 68 void handle_contextmenu_evaluate (bool flag); |
69 void handle_contextmenu_create_script (bool flag); | 69 void handle_contextmenu_create_script (bool flag); |
70 void handle_contextmenu_filter (void); | |
70 void ctxMenu (const QPoint &pos); | 71 void ctxMenu (const QPoint &pos); |
71 | 72 |
72 void copyClipboard (); | 73 void copyClipboard (); |
73 void pasteClipboard (); | 74 void pasteClipboard (); |
74 void selectAll (); | 75 void selectAll (); |
82 /** Stores the current history_model. */ | 83 /** Stores the current history_model. */ |
83 QStringListModel *_history_model; | 84 QStringListModel *_history_model; |
84 | 85 |
85 QCheckBox *_filter_checkbox; | 86 QCheckBox *_filter_checkbox; |
86 QComboBox *_filter; | 87 QComboBox *_filter; |
88 QWidget *_filter_widget; | |
89 bool _filter_shown; | |
87 enum { MaxFilterHistory = 10 }; | 90 enum { MaxFilterHistory = 10 }; |
88 }; | 91 }; |
89 | 92 |
90 #endif // HISTORYDOCKWIDGET_H | 93 #endif // HISTORYDOCKWIDGET_H |