GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "workspace-view.h"
Public Slots | |
virtual void | focus (void) |
void | handle_active_dock_changed (octave_dock_widget *, octave_dock_widget *) |
void | handle_settings (const QSettings *) |
virtual void | handle_visibility (bool visible) |
QMainWindow * | main_win () |
void | notice_settings (const QSettings *) |
void | setModel (workspace_model *model) |
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_requested (const QString &cmd) |
signal that user had requested a command on a variable More... | |
Public Member Functions | |
workspace_view (QWidget *parent=0) | |
~workspace_view (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 | add_actions (QList< QAction * > action_list) |
void | contextmenu_requested (const QPoint &pos) |
void | copyClipboard () |
virtual void | do_undo () |
slots to handle undo More... | |
bool | eventFilter (QObject *obj, QEvent *e) |
void | filter_activate (bool enable) |
void | filter_update (const QString &expression) |
void | handle_contextmenu_copy (void) |
void | handle_contextmenu_copy_value (void) |
void | handle_contextmenu_disp (void) |
void | handle_contextmenu_plot (void) |
void | handle_contextmenu_rename (void) |
void | handle_contextmenu_stem (void) |
void | handle_model_changed (void) |
virtual void | handle_visibility_changed (bool visible) |
Slot to steer changing visibility from outside. More... | |
virtual void | pasteClipboard () |
void | selectAll () |
void | update_filter_history () |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
QWidget * | focusWidget () |
Private Types | |
enum | { MaxFilterHistory = 10 } |
Private Member Functions | |
QString | get_var_name (QModelIndex index) |
void | relay_contextmenu_command (const QString &cmdname) |
Private Attributes | |
QComboBox * | _filter |
QCheckBox * | _filter_checkbox |
QSortFilterProxyModel | _filter_model |
workspace_model * | _model |
QTableView * | view |
int | view_previous_row_count |
Definition at line 37 of file workspace-view.h.
|
private |
Enumerator | |
---|---|
MaxFilterHistory |
Definition at line 95 of file workspace-view.h.
workspace_view::workspace_view | ( | QWidget * | parent = 0 | ) |
Definition at line 45 of file workspace-view.cc.
References _filter, _filter_checkbox, command_requested(), contextmenu_requested(), filter_activate(), filter_update(), resource_manager::get_settings(), MaxFilterHistory, octave_dock_widget::set_title(), update_filter_history(), view, and view_previous_row_count.
workspace_view::~workspace_view | ( | void | ) |
Definition at line 131 of file workspace-view.cc.
References _filter, _filter_checkbox, resource_manager::get_settings(), and view.
|
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 143 of file moc-octave-dock-widget.cc.
Referenced by octave_dock_widget::change_visibility(), octave_dock_widget::closeEvent(), closeEvent(), octave_dock_widget::connect_visibility_changed(), and octave_dock_widget::handle_visibility_changed().
|
protectedvirtualslotinherited |
Definition at line 485 of file octave-dock-widget.cc.
Referenced by octave_dock_widget::octave_dock_widget().
|
protectedvirtual |
Reimplemented from octave_dock_widget.
Definition at line 165 of file workspace-view.cc.
References octave_dock_widget::active_changed().
|
signal |
signal that user had requested a command on a variable
Definition at line 142 of file moc-workspace-view.cc.
Referenced by relay_contextmenu_command(), and workspace_view().
|
virtualinherited |
Definition at line 154 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().
|
protectedslot |
Definition at line 214 of file workspace-view.cc.
References get_var_name(), handle_contextmenu_copy(), handle_contextmenu_copy_value(), handle_contextmenu_disp(), handle_contextmenu_plot(), handle_contextmenu_rename(), handle_contextmenu_stem(), workspace_model::is_top_level(), and view.
Referenced by workspace_view().
|
protectedslot |
Definition at line 388 of file workspace-view.cc.
References handle_contextmenu_copy(), and view.
|
inlineprotectedvirtualslotinherited |
slots to handle undo
Definition at line 100 of file octave-dock-widget.h.
Referenced by octave_dock_widget::octave_dock_widget().
Definition at line 455 of file octave-dock-widget.cc.
|
protectedslot |
Definition at line 179 of file workspace-view.cc.
References _filter, _filter_model, and filter_update().
Referenced by workspace_view().
|
protectedslot |
Definition at line 172 of file workspace-view.cc.
References _filter_model, and handle_model_changed().
Referenced by filter_activate(), and workspace_view().
|
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(), octave_dock_widget::handle_visibility(), and octave_dock_widget::set_focus_predecessor().
|
protectedinherited |
Definition at line 311 of file octave-dock-widget.cc.
References Faddeeva::w().
|
private |
Definition at line 204 of file workspace-view.cc.
References view.
Referenced by contextmenu_requested(), handle_contextmenu_copy(), handle_contextmenu_copy_value(), handle_contextmenu_rename(), and relay_contextmenu_command().
|
slotinherited |
Definition at line 467 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().
|
protectedslot |
Definition at line 259 of file workspace-view.cc.
References get_var_name(), and view.
Referenced by contextmenu_requested(), and copyClipboard().
|
protectedslot |
Definition at line 274 of file workspace-view.cc.
References QtHandles::Utils::fromStdString(), get_var_name(), octave_value::print_raw(), symbol_table::varval(), and view.
Referenced by contextmenu_requested().
|
protectedslot |
Definition at line 319 of file workspace-view.cc.
References relay_contextmenu_command().
Referenced by contextmenu_requested().
|
protectedslot |
Definition at line 325 of file workspace-view.cc.
References relay_contextmenu_command().
Referenced by contextmenu_requested().
|
protectedslot |
Definition at line 292 of file workspace-view.cc.
References get_var_name(), and view.
Referenced by contextmenu_requested().
|
protectedslot |
Definition at line 331 of file workspace-view.cc.
References relay_contextmenu_command().
Referenced by contextmenu_requested().
|
protectedslot |
Definition at line 350 of file workspace-view.cc.
References _filter_model, view, and view_previous_row_count.
Referenced by filter_update().
|
slotinherited |
Definition at line 415 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, octave_dock_widget::notice_settings(), and octave_dock_widget::set_style().
Referenced by octave_dock_widget::octave_dock_widget().
|
inlinevirtualslotinherited |
Definition at line 72 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().
|
inlineslotinherited |
Definition at line 85 of file octave-dock-widget.h.
References octave_dock_widget::_parent.
Referenced by files_dock_widget::files_dock_widget().
|
inherited |
Definition at line 238 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 195 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().
|
slot |
Definition at line 364 of file workspace-view.cc.
References _model, arg(), workspace_model::notice_settings(), resource_manager::storage_class_chars(), workspace_model::storage_class_color(), and resource_manager::storage_class_names().
|
inlineprotectedvirtualslotinherited |
Definition at line 97 of file octave-dock-widget.h.
Referenced by octave_dock_widget::octave_dock_widget().
|
private |
Definition at line 337 of file workspace-view.cc.
References command_requested(), get_var_name(), and view.
Referenced by handle_contextmenu_disp(), handle_contextmenu_plot(), and handle_contextmenu_stem().
|
protectedslot |
Definition at line 395 of file workspace-view.cc.
References view.
|
inherited |
Definition at line 164 of file octave-dock-widget.cc.
References octave_dock_widget::_predecessor_widget.
Referenced by main_window::focus_changed().
|
inherited |
Definition at line 171 of file octave-dock-widget.cc.
Referenced by history_dock_widget::construct(), documentation_dock_widget::documentation_dock_widget(), files_dock_widget::files_dock_widget(), terminal_dock_widget::terminal_dock_widget(), and workspace_view().
|
slot |
Definition at line 154 of file workspace-view.cc.
References _filter_model, _model, and view.
Referenced by main_window::construct().
|
protectedslot |
Definition at line 191 of file workspace-view.cc.
References _filter.
Referenced by workspace_view().
|
private |
Definition at line 94 of file workspace-view.h.
Referenced by filter_activate(), update_filter_history(), workspace_view(), and ~workspace_view().
|
private |
Definition at line 93 of file workspace-view.h.
Referenced by workspace_view(), and ~workspace_view().
|
private |
Definition at line 92 of file workspace-view.h.
Referenced by filter_activate(), filter_update(), handle_model_changed(), and setModel().
|
private |
Definition at line 90 of file workspace-view.h.
Referenced by notice_settings(), and setModel().
|
private |
Definition at line 88 of file workspace-view.h.
Referenced by contextmenu_requested(), copyClipboard(), get_var_name(), handle_contextmenu_copy(), handle_contextmenu_copy_value(), handle_contextmenu_rename(), handle_model_changed(), relay_contextmenu_command(), selectAll(), setModel(), workspace_view(), and ~workspace_view().
|
private |
Definition at line 89 of file workspace-view.h.
Referenced by handle_model_changed(), and workspace_view().