GNU Octave
3.8.0
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) |
virtual void | handle_visibility (bool visible) |
QMainWindow * | main_win () |
virtual void | notice_settings (const QSettings *) |
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. | |
void | command_create_script (const QString &commands) |
Emitted whenever the user selects command and chooses Create script from popupmenu. | |
void | command_double_clicked (const QString &command) |
Emitted, whenever the user double-clicked a command in the history. | |
void | information (const QString &message) |
Public Member Functions | |
history_dock_widget (QWidget *parent=0) | |
virtual void | connect_visibility_changed (void) |
void | make_widget (bool dock=true) |
void | make_window (void) |
void | set_title (const QString &) |
Protected Slots | |
virtual void | handle_visibility_changed (bool visible) |
Slot to steer changing visibility from outside. |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *e) |
QWidget * | focusWidget () |
Private Slots | |
void | copyClipboard () |
void | ctxMenu (const QPoint &pos) |
void | handle_contextmenu_copy (bool flag) |
void | handle_contextmenu_create_script (bool flag) |
void | handle_contextmenu_evaluate (bool flag) |
void | handle_double_click (QModelIndex modelIndex) |
void | pasteClipboard () |
Private Member Functions | |
void | construct () |
Private Attributes | |
QLineEdit * | _filter_line_edit |
QListView * | _history_list_view |
QStringListModel * | _history_model |
Stores the current history_model. | |
QSortFilterProxyModel | _sort_filter_proxy_model |
Definition at line 32 of file history-dock-widget.h.
history_dock_widget::history_dock_widget | ( | QWidget * | parent = 0 | ) |
Definition at line 39 of file history-dock-widget.cc.
References command_create_script(), command_double_clicked(), construct(), and information().
Custom signal that tells whether a user has clicked away that dock widget, i.e the active dock widget has changed.
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 179 of file history-dock-widget.cc.
References _history_list_view, and _history_model.
Definition at line 196 of file history-dock-widget.cc.
References _history_model.
|
inlineprotectedvirtualinherited |
Reimplemented in workspace_view.
Definition at line 55 of file octave-dock-widget.h.
References octave_dock_widget::active_changed().
|
signal |
Emitted whenever the user selects command and chooses Create script from popupmenu.
Referenced by handle_contextmenu_create_script(), and history_dock_widget().
|
signal |
Emitted, whenever the user double-clicked a command in the history.
Referenced by handle_contextmenu_evaluate(), handle_double_click(), and history_dock_widget().
Definition at line 134 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 58 of file history-dock-widget.cc.
References _filter_line_edit, _history_list_view, _history_model, _sort_filter_proxy_model, ctxMenu(), handle_double_click(), and octave_dock_widget::set_title().
Referenced by history_dock_widget().
Definition at line 202 of file history-dock-widget.cc.
References _filter_line_edit, _history_list_view, and handle_contextmenu_copy().
|
privateslot |
Definition at line 98 of file history-dock-widget.cc.
References _history_list_view, handle_contextmenu_copy(), handle_contextmenu_create_script(), and handle_contextmenu_evaluate().
Referenced by construct().
Reimplemented in terminal_dock_widget.
Definition at line 65 of file octave-dock-widget.h.
Referenced by octave_dock_widget::change_floating(), and octave_dock_widget::handle_visibility().
|
protectedinherited |
Definition at line 259 of file octave-dock-widget.cc.
References Faddeeva::w().
Definition at line 109 of file history-dock-widget.cc.
References _history_list_view.
Referenced by copyClipboard(), and ctxMenu().
Definition at line 142 of file history-dock-widget.cc.
References _history_list_view, and command_create_script().
Referenced by ctxMenu().
Definition at line 129 of file history-dock-widget.cc.
References _history_list_view, and command_double_clicked().
Referenced by ctxMenu().
|
privateslot |
Definition at line 166 of file history-dock-widget.cc.
References command_double_clicked().
Referenced by construct().
Definition at line 75 of file octave-dock-widget.h.
References octave_dock_widget::focus().
Referenced by octave_dock_widget::connect_visibility_changed().
|
inlineprotectedvirtualslotinherited |
Slot to steer changing visibility from outside.
Definition at line 90 of file octave-dock-widget.h.
References octave_dock_widget::active_changed().
Referenced by octave_dock_widget::octave_dock_widget().
|
signal |
Referenced by history_dock_widget().
|
inlineslotinherited |
Definition at line 85 of file octave-dock-widget.h.
References octave_dock_widget::_parent.
Referenced by files_dock_widget::files_dock_widget().
Definition at line 193 of file octave-dock-widget.cc.
References octave_dock_widget::_dock_action, octave_dock_widget::_floating, octave_dock_widget::_parent, and resource_manager::get_settings().
Referenced by octave_dock_widget::change_floating(), and main_window::set_window_layout().
Definition at line 157 of file octave-dock-widget.cc.
References octave_dock_widget::_dock_action, octave_dock_widget::_floating, octave_dock_widget::_parent, and resource_manager::get_settings().
Referenced by octave_dock_widget::change_floating(), and main_window::set_window_layout().
|
inlinevirtualslotinherited |
Definition at line 81 of file octave-dock-widget.h.
Referenced by octave_dock_widget::octave_dock_widget().
Definition at line 214 of file history-dock-widget.cc.
References _filter_line_edit.
|
slot |
Definition at line 172 of file history-dock-widget.cc.
References _history_list_view, and _history_model.
|
inherited |
Definition at line 144 of file octave-dock-widget.cc.
Referenced by construct(), documentation_dock_widget::documentation_dock_widget(), files_dock_widget::files_dock_widget(), terminal_dock_widget::terminal_dock_widget(), and workspace_view::workspace_view().
|
private |
Definition at line 72 of file history-dock-widget.h.
Referenced by construct(), copyClipboard(), and pasteClipboard().
|
private |
Definition at line 71 of file history-dock-widget.h.
Referenced by append_history(), construct(), copyClipboard(), ctxMenu(), handle_contextmenu_copy(), handle_contextmenu_create_script(), handle_contextmenu_evaluate(), and set_history().
|
private |
Stores the current history_model.
Definition at line 76 of file history-dock-widget.h.
Referenced by append_history(), clear_history(), construct(), and set_history().
|
private |
Definition at line 73 of file history-dock-widget.h.
Referenced by construct().