GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
workspace_view Class Reference

#include "workspace-view.h"

Inheritance diagram for workspace_view:
Inheritance graph
[legend]
Collaboration diagram for workspace_view:
Collaboration graph
[legend]

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)
 
QMainWindowmain_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)
 
QWidgetfocusWidget ()
 

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
 

Detailed Description

Definition at line 37 of file workspace-view.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
MaxFilterHistory 

Definition at line 95 of file workspace-view.h.

Constructor & Destructor Documentation

workspace_view::workspace_view ( QWidget parent = 0)
workspace_view::~workspace_view ( void  )

Definition at line 131 of file workspace-view.cc.

References _filter, _filter_checkbox, resource_manager::get_settings(), and view.

Member Function Documentation

void octave_dock_widget::active_changed ( bool  active)
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().

void octave_dock_widget::add_actions ( QList< QAction * >  action_list)
protectedvirtualslotinherited

Definition at line 485 of file octave-dock-widget.cc.

Referenced by octave_dock_widget::octave_dock_widget().

void workspace_view::closeEvent ( QCloseEvent *  event)
protectedvirtual

Reimplemented from octave_dock_widget.

Definition at line 165 of file workspace-view.cc.

References octave_dock_widget::active_changed().

void workspace_view::command_requested ( const QString &  cmd)
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().

void octave_dock_widget::connect_visibility_changed ( void  )
virtualinherited
void workspace_view::contextmenu_requested ( const QPoint &  pos)
protectedslot
void workspace_view::copyClipboard ( void  )
protectedslot

Definition at line 388 of file workspace-view.cc.

References handle_contextmenu_copy(), and view.

virtual void octave_dock_widget::do_undo ( void  )
inlineprotectedvirtualslotinherited

slots to handle undo

Definition at line 100 of file octave-dock-widget.h.

Referenced by octave_dock_widget::octave_dock_widget().

bool octave_dock_widget::eventFilter ( QObject obj,
QEvent *  e 
)
protectedslotinherited

Definition at line 455 of file octave-dock-widget.cc.

void workspace_view::filter_activate ( bool  enable)
protectedslot

Definition at line 179 of file workspace-view.cc.

References _filter, _filter_model, and filter_update().

Referenced by workspace_view().

void workspace_view::filter_update ( const QString &  expression)
protectedslot

Definition at line 172 of file workspace-view.cc.

References _filter_model, and handle_model_changed().

Referenced by filter_activate(), and workspace_view().

virtual void octave_dock_widget::focus ( void  )
inlinevirtualslotinherited
QWidget * octave_dock_widget::focusWidget ( )
protectedinherited

Definition at line 311 of file octave-dock-widget.cc.

References Faddeeva::w().

QString workspace_view::get_var_name ( QModelIndex  index)
private
void octave_dock_widget::handle_active_dock_changed ( octave_dock_widget w_old,
octave_dock_widget w_new 
)
slotinherited
void workspace_view::handle_contextmenu_copy ( void  )
protectedslot

Definition at line 259 of file workspace-view.cc.

References get_var_name(), and view.

Referenced by contextmenu_requested(), and copyClipboard().

void workspace_view::handle_contextmenu_copy_value ( void  )
protectedslot
void workspace_view::handle_contextmenu_disp ( void  )
protectedslot

Definition at line 319 of file workspace-view.cc.

References relay_contextmenu_command().

Referenced by contextmenu_requested().

void workspace_view::handle_contextmenu_plot ( void  )
protectedslot

Definition at line 325 of file workspace-view.cc.

References relay_contextmenu_command().

Referenced by contextmenu_requested().

void workspace_view::handle_contextmenu_rename ( void  )
protectedslot

Definition at line 292 of file workspace-view.cc.

References get_var_name(), and view.

Referenced by contextmenu_requested().

void workspace_view::handle_contextmenu_stem ( void  )
protectedslot

Definition at line 331 of file workspace-view.cc.

References relay_contextmenu_command().

Referenced by contextmenu_requested().

void workspace_view::handle_model_changed ( void  )
protectedslot

Definition at line 350 of file workspace-view.cc.

References _filter_model, view, and view_previous_row_count.

Referenced by filter_update().

void octave_dock_widget::handle_settings ( const QSettings *  settings)
slotinherited
virtual void octave_dock_widget::handle_visibility ( bool  visible)
inlinevirtualslotinherited
virtual void octave_dock_widget::handle_visibility_changed ( bool  visible)
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().

QMainWindow* octave_dock_widget::main_win ( )
inlineslotinherited

Definition at line 85 of file octave-dock-widget.h.

References octave_dock_widget::_parent.

Referenced by files_dock_widget::files_dock_widget().

void octave_dock_widget::make_widget ( bool  dock = true)
inherited
void octave_dock_widget::make_window ( void  )
inherited
void workspace_view::notice_settings ( const QSettings *  settings)
slot
virtual void octave_dock_widget::pasteClipboard ( void  )
inlineprotectedvirtualslotinherited

Definition at line 97 of file octave-dock-widget.h.

Referenced by octave_dock_widget::octave_dock_widget().

void workspace_view::relay_contextmenu_command ( const QString &  cmdname)
private
void workspace_view::selectAll ( void  )
protectedslot

Definition at line 395 of file workspace-view.cc.

References view.

void octave_dock_widget::set_predecessor_widget ( octave_dock_widget prev_widget)
inherited
void octave_dock_widget::set_title ( const QString &  title)
inherited
void workspace_view::setModel ( workspace_model model)
slot

Definition at line 154 of file workspace-view.cc.

References _filter_model, _model, and view.

Referenced by main_window::construct().

void workspace_view::update_filter_history ( )
protectedslot

Definition at line 191 of file workspace-view.cc.

References _filter.

Referenced by workspace_view().

Member Data Documentation

QComboBox* workspace_view::_filter
private
QCheckBox* workspace_view::_filter_checkbox
private

Definition at line 93 of file workspace-view.h.

Referenced by workspace_view(), and ~workspace_view().

QSortFilterProxyModel workspace_view::_filter_model
private

Definition at line 92 of file workspace-view.h.

Referenced by filter_activate(), filter_update(), handle_model_changed(), and setModel().

workspace_model* workspace_view::_model
private

Definition at line 90 of file workspace-view.h.

Referenced by notice_settings(), and setModel().

QTableView* workspace_view::view
private
int workspace_view::view_previous_row_count
private

Definition at line 89 of file workspace-view.h.

Referenced by handle_model_changed(), and workspace_view().


The documentation for this class was generated from the following files: