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 Slots | Private Member Functions | Private Attributes | List of all members
history_dock_widget Class Reference

#include "history-dock-widget.h"

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

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 *)
 
virtual void handle_visibility (bool visible)
 
QMainWindowmain_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. 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 ()
 
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)
 
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)
 
QWidgetfocusWidget ()
 

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_double_click (QModelIndex modelIndex)
 
void pasteClipboard ()
 
void selectAll ()
 
void update_filter_history ()
 

Private Member Functions

void construct ()
 

Private Attributes

QComboBox * _filter
 
QCheckBox * _filter_checkbox
 
QListView * _history_list_view
 
QStringListModel * _history_model
 Stores the current history_model. More...
 
QSortFilterProxyModel _sort_filter_proxy_model
 

Detailed Description

Definition at line 35 of file history-dock-widget.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
MaxFilterHistory 

Definition at line 87 of file history-dock-widget.h.

Constructor & Destructor Documentation

history_dock_widget::history_dock_widget ( QWidget parent = 0)
history_dock_widget::~history_dock_widget ( )

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(), workspace_view::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 history_dock_widget::append_history ( const QString &  hist_entry)
slot

Definition at line 262 of file history-dock-widget.cc.

References _history_list_view, and _history_model.

void history_dock_widget::clear_history ( void  )
slot

Definition at line 279 of file history-dock-widget.cc.

References _history_model.

void octave_dock_widget::closeEvent ( QCloseEvent *  e)
protectedvirtualinherited
void history_dock_widget::command_create_script ( const QString &  commands)
signal

Emitted whenever the user selects command and chooses Create script from popupmenu.

Definition at line 156 of file moc-history-dock-widget.cc.

Referenced by handle_contextmenu_create_script(), and history_dock_widget().

void history_dock_widget::command_double_clicked ( const QString &  command)
signal

Emitted, whenever the user double-clicked a command in the history.

Definition at line 149 of file moc-history-dock-widget.cc.

Referenced by handle_contextmenu_evaluate(), handle_double_click(), and history_dock_widget().

void octave_dock_widget::connect_visibility_changed ( void  )
virtualinherited
void history_dock_widget::construct ( )
private
void history_dock_widget::copyClipboard ( void  )
privateslot

Definition at line 285 of file history-dock-widget.cc.

References _filter, _history_list_view, and handle_contextmenu_copy().

void history_dock_widget::ctxMenu ( const QPoint &  pos)
privateslot
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 history_dock_widget::filter_activate ( bool  enable)
privateslot

Definition at line 155 of file history-dock-widget.cc.

References _filter, and _sort_filter_proxy_model.

Referenced by construct().

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().

void octave_dock_widget::handle_active_dock_changed ( octave_dock_widget w_old,
octave_dock_widget w_new 
)
slotinherited
void history_dock_widget::handle_contextmenu_copy ( bool  flag)
privateslot

Definition at line 192 of file history-dock-widget.cc.

References _history_list_view.

Referenced by copyClipboard(), and ctxMenu().

void history_dock_widget::handle_contextmenu_create_script ( bool  flag)
privateslot

Definition at line 225 of file history-dock-widget.cc.

References _history_list_view, and command_create_script().

Referenced by ctxMenu().

void history_dock_widget::handle_contextmenu_evaluate ( bool  flag)
privateslot

Definition at line 212 of file history-dock-widget.cc.

References _history_list_view, and command_double_clicked().

Referenced by ctxMenu().

void history_dock_widget::handle_double_click ( QModelIndex  modelIndex)
privateslot

Definition at line 249 of file history-dock-widget.cc.

References command_double_clicked().

Referenced by construct().

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().

void history_dock_widget::information ( const QString &  message)
signal

Definition at line 142 of file moc-history-dock-widget.cc.

Referenced by history_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
virtual void octave_dock_widget::notice_settings ( const QSettings *  )
inlinevirtualslotinherited

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

Referenced by octave_dock_widget::handle_settings().

void history_dock_widget::pasteClipboard ( void  )
privateslot

Definition at line 298 of file history-dock-widget.cc.

References _filter.

void history_dock_widget::selectAll ( void  )
privateslot

Definition at line 310 of file history-dock-widget.cc.

References _filter, and _history_list_view.

void history_dock_widget::set_history ( const QStringList &  hist)
slot

Definition at line 255 of file history-dock-widget.cc.

References _history_list_view, and _history_model.

void octave_dock_widget::set_predecessor_widget ( octave_dock_widget prev_widget)
inherited
void octave_dock_widget::set_title ( const QString &  title)
inherited
void history_dock_widget::update_filter_history ( )
privateslot

Definition at line 167 of file history-dock-widget.cc.

References _filter.

Referenced by construct().

Member Data Documentation

QComboBox* history_dock_widget::_filter
private
QCheckBox* history_dock_widget::_filter_checkbox
private

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

Referenced by construct(), and ~history_dock_widget().

QListView* history_dock_widget::_history_list_view
private
QStringListModel* history_dock_widget::_history_model
private

Stores the current history_model.

Definition at line 83 of file history-dock-widget.h.

Referenced by append_history(), clear_history(), construct(), and set_history().

QSortFilterProxyModel history_dock_widget::_sort_filter_proxy_model
private

Definition at line 80 of file history-dock-widget.h.

Referenced by construct(), and filter_activate().


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