GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "history-dock-widget.h"
Public Slots | |
void | append_history (const QString &hist_entry) |
void | clear_history (void) |
virtual void | focus (void) |
void | handle_active_dock_changed (octave_dock_widget *, octave_dock_widget *) |
void | handle_settings (const QSettings *) |
QMainWindow * | main_win () |
virtual void | notice_settings (const QSettings *) |
void | save_settings (void) |
void | set_history (const QStringList &hist) |
Signals | |
void | active_changed (bool active) |
Custom signal that tells whether a user has clicked away that dock widget, i.e the active dock widget has changed. More... | |
void | command_create_script (const QString &commands) |
Emitted whenever the user selects command and chooses Create script from popupmenu. More... | |
void | command_double_clicked (const QString &command) |
Emitted, whenever the user double-clicked a command in the history. More... | |
void | information (const QString &message) |
Public Member Functions | |
history_dock_widget (QWidget *parent=0) | |
~history_dock_widget (void) | |
virtual void | connect_visibility_changed (void) |
void | make_widget (bool dock=true) |
void | make_window (void) |
void | set_predecessor_widget (octave_dock_widget *prev_widget) |
void | set_title (const QString &) |
Protected Slots | |
virtual void | do_undo () |
slots to handle undo More... | |
bool | eventFilter (QObject *obj, QEvent *e) |
virtual void | handle_visibility_changed (bool visible) |
Slot to steer changing visibility from outside. More... | |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *e) |
QWidget * | focusWidget () |
Private Types | |
enum | { MaxFilterHistory = 10 } |
Private Slots | |
void | copyClipboard () |
void | ctxMenu (const QPoint &pos) |
void | filter_activate (bool enable) |
void | handle_contextmenu_copy (bool flag) |
void | handle_contextmenu_create_script (bool flag) |
void | handle_contextmenu_evaluate (bool flag) |
void | handle_contextmenu_filter (void) |
void | handle_double_click (QModelIndex modelIndex) |
virtual void | handle_visibility (bool visible) |
void | pasteClipboard () |
void | selectAll () |
void | update_filter_history () |
Private Member Functions | |
void | construct () |
Private Attributes | |
QComboBox * | _filter |
QCheckBox * | _filter_checkbox |
bool | _filter_shown |
QWidget * | _filter_widget |
QListView * | _history_list_view |
QStringListModel * | _history_model |
Stores the current history_model. More... | |
QSortFilterProxyModel | _sort_filter_proxy_model |
Definition at line 35 of file history-dock-widget.h.
|
private |
Enumerator | |
---|---|
MaxFilterHistory |
Definition at line 93 of file history-dock-widget.h.
history_dock_widget::history_dock_widget | ( | QWidget * | parent = 0 | ) |
Definition at line 43 of file history-dock-widget.cc.
References command_create_script(), command_double_clicked(), construct(), and information().
|
inline |
Definition at line 42 of file history-dock-widget.h.
|
signalinherited |
Custom signal that tells whether a user has clicked away that dock widget, i.e the active dock widget has changed.
Definition at line 142 of file moc-octave-dock-widget.cc.
Referenced by octave_dock_widget::change_visibility(), octave_dock_widget::closeEvent(), workspace_view::closeEvent(), octave_dock_widget::connect_visibility_changed(), and octave_dock_widget::handle_visibility_changed().
|
slot |
Definition at line 296 of file history-dock-widget.cc.
References _history_list_view, and _history_model.
|
slot |
Definition at line 313 of file history-dock-widget.cc.
References _history_model.
|
protectedvirtualinherited |
Reimplemented in workspace_view.
Definition at line 495 of file octave-dock-widget.cc.
References octave_dock_widget::active_changed(), and octave_dock_widget::set_focus_predecessor().
|
signal |
Emitted whenever the user selects command and chooses Create script from popupmenu.
Definition at line 164 of file moc-history-dock-widget.cc.
Referenced by handle_contextmenu_create_script(), and history_dock_widget().
|
signal |
Emitted, whenever the user double-clicked a command in the history.
Definition at line 157 of file moc-history-dock-widget.cc.
Referenced by handle_contextmenu_evaluate(), handle_double_click(), and history_dock_widget().
|
virtualinherited |
Definition at line 157 of file octave-dock-widget.cc.
References octave_dock_widget::active_changed(), and octave_dock_widget::handle_visibility().
Referenced by main_window::connect_visibility_changed().
|
private |
Definition at line 62 of file history-dock-widget.cc.
References _filter, _filter_checkbox, _filter_shown, _filter_widget, _history_list_view, _history_model, _sort_filter_proxy_model, ctxMenu(), filter_activate(), resource_manager::get_settings(), h, handle_double_click(), MaxFilterHistory, octave_dock_widget::set_title(), update_filter_history(), and Faddeeva::w().
Referenced by history_dock_widget().
|
privateslot |
Definition at line 319 of file history-dock-widget.cc.
References _filter, _history_list_view, and handle_contextmenu_copy().
|
privateslot |
Definition at line 194 of file history-dock-widget.cc.
References _filter_shown, _history_list_view, handle_contextmenu_copy(), handle_contextmenu_create_script(), handle_contextmenu_evaluate(), handle_contextmenu_filter(), and resource_manager::icon().
Referenced by construct().
|
inlineprotectedvirtualslotinherited |
slots to handle undo
Definition at line 101 of file octave-dock-widget.h.
Referenced by octave_dock_widget::octave_dock_widget().
Definition at line 465 of file octave-dock-widget.cc.
|
privateslot |
Definition at line 170 of file history-dock-widget.cc.
References _filter, and _sort_filter_proxy_model.
Referenced by construct(), and handle_visibility().
|
inlinevirtualslotinherited |
Reimplemented in terminal_dock_widget.
Definition at line 62 of file octave-dock-widget.h.
Referenced by octave_dock_widget::change_floating(), terminal_dock_widget::focus(), file_editor::focus(), octave_dock_widget::handle_visibility(), and octave_dock_widget::set_focus_predecessor().
|
protectedinherited |
Definition at line 316 of file octave-dock-widget.cc.
References Faddeeva::w().
Referenced by file_editor::editor_tab_has_focus().
|
slotinherited |
Definition at line 477 of file octave-dock-widget.cc.
References octave_dock_widget::_custom_style, and octave_dock_widget::set_style().
Referenced by octave_dock_widget::octave_dock_widget().
|
privateslot |
Definition at line 220 of file history-dock-widget.cc.
References _history_list_view, and text.
Referenced by copyClipboard(), and ctxMenu().
|
privateslot |
Definition at line 253 of file history-dock-widget.cc.
References _history_list_view, command_create_script(), and text.
Referenced by ctxMenu().
|
privateslot |
Definition at line 240 of file history-dock-widget.cc.
References _history_list_view, and command_double_clicked().
Referenced by ctxMenu().
|
privateslot |
Definition at line 276 of file history-dock-widget.cc.
References _filter_shown, and _filter_widget.
Referenced by ctxMenu().
|
privateslot |
Definition at line 283 of file history-dock-widget.cc.
References command_double_clicked().
Referenced by construct().
|
slotinherited |
Definition at line 425 of file octave-dock-widget.cc.
References octave_dock_widget::_bg_color, octave_dock_widget::_bg_color_active, octave_dock_widget::_custom_style, octave_dock_widget::_fg_color, octave_dock_widget::_fg_color_active, octave_dock_widget::_icon_color, octave_dock_widget::_icon_color_active, octave_dock_widget::_title_3d, b, octave_dock_widget::notice_settings(), and octave_dock_widget::set_style().
Referenced by octave_dock_widget::octave_dock_widget().
|
privatevirtualslot |
Definition at line 356 of file history-dock-widget.cc.
References _filter_checkbox, filter_activate(), and octave_dock_widget::handle_visibility().
|
inlineprotectedvirtualslotinherited |
Slot to steer changing visibility from outside.
Definition at line 91 of file octave-dock-widget.h.
References octave_dock_widget::active_changed().
Referenced by octave_dock_widget::octave_dock_widget().
|
signal |
Definition at line 150 of file moc-history-dock-widget.cc.
Referenced by history_dock_widget().
|
inlineslotinherited |
Definition at line 84 of file octave-dock-widget.h.
References octave_dock_widget::_parent.
Referenced by file_editor::add_file_editor_tab(), file_editor::construct(), file_editor::empty_script(), files_dock_widget::files_dock_widget(), and file_editor::is_editor_console_tabbed().
|
inherited |
Definition at line 241 of file octave-dock-widget.cc.
References octave_dock_widget::_floating, octave_dock_widget::_icon_color, octave_dock_widget::_parent, and resource_manager::get_settings().
Referenced by octave_dock_widget::change_floating(), and main_window::set_window_layout().
|
inherited |
Definition at line 197 of file octave-dock-widget.cc.
References octave_dock_widget::_floating, octave_dock_widget::_icon_color, octave_dock_widget::_parent, resource_manager::get_settings(), and octave_dock_widget::set_focus_predecessor().
Referenced by octave_dock_widget::change_floating(), and main_window::set_window_layout().
|
inlinevirtualslotinherited |
Definition at line 78 of file octave-dock-widget.h.
Referenced by octave_dock_widget::handle_settings().
|
privateslot |
Definition at line 332 of file history-dock-widget.cc.
|
slot |
Definition at line 148 of file history-dock-widget.cc.
References _filter, _filter_checkbox, _filter_shown, resource_manager::get_settings(), and octave_dock_widget::save_settings().
|
privateslot |
Definition at line 344 of file history-dock-widget.cc.
References _filter, and _history_list_view.
|
slot |
Definition at line 289 of file history-dock-widget.cc.
References _history_list_view, and _history_model.
|
inherited |
Definition at line 166 of file octave-dock-widget.cc.
References octave_dock_widget::_predecessor_widget.
Referenced by main_window::focus_changed().
|
inherited |
Definition at line 173 of file octave-dock-widget.cc.
Referenced by construct(), file_editor::construct(), documentation_dock_widget::documentation_dock_widget(), files_dock_widget::files_dock_widget(), terminal_dock_widget::terminal_dock_widget(), and workspace_view::workspace_view().
|
privateslot |
Definition at line 182 of file history-dock-widget.cc.
References _filter.
Referenced by construct().
|
private |
Definition at line 90 of file history-dock-widget.h.
Referenced by construct(), copyClipboard(), filter_activate(), pasteClipboard(), save_settings(), selectAll(), and update_filter_history().
|
private |
Definition at line 89 of file history-dock-widget.h.
Referenced by construct(), handle_visibility(), and save_settings().
|
private |
Definition at line 92 of file history-dock-widget.h.
Referenced by construct(), ctxMenu(), handle_contextmenu_filter(), and save_settings().
|
private |
Definition at line 91 of file history-dock-widget.h.
Referenced by construct(), and handle_contextmenu_filter().
|
private |
Definition at line 83 of file history-dock-widget.h.
Referenced by append_history(), construct(), copyClipboard(), ctxMenu(), handle_contextmenu_copy(), handle_contextmenu_create_script(), handle_contextmenu_evaluate(), selectAll(), and set_history().
|
private |
Stores the current history_model.
Definition at line 87 of file history-dock-widget.h.
Referenced by append_history(), clear_history(), construct(), and set_history().
|
private |
Definition at line 84 of file history-dock-widget.h.
Referenced by construct(), and filter_activate().