GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave_dock_widget Class Reference

#include "octave-dock-widget.h"

Inheritance diagram for octave_dock_widget:
Collaboration diagram for octave_dock_widget:

Public Slots

virtual void activate (void)
 
void default_dock (bool not_used=false)
 
void handle_active_dock_changed (octave_dock_widget *, octave_dock_widget *)
 
void handle_settings (const gui_settings *)
 
virtual void handle_visibility (bool visible)
 
void init_window_menu_entry (void)
 
void make_widget (bool not_used=false)
 
void make_window (bool widget_was_dragged=false)
 
void moveEvent (QMoveEvent *event)
 
virtual void notice_settings (const gui_settings *)
 
void resizeEvent (QResizeEvent *event)
 
virtual void save_settings (void)
 

Signals

void active_changed (bool active)
 Custom signal that tells whether a user has clicked away that dock widget, i.e. More...
 
void queue_make_widget (void)
 
void queue_make_window (bool widget_was_dragged)
 

Public Member Functions

 octave_dock_widget (const QString &obj_name, QWidget *p, base_qobject &oct_qobj)
 
 ~octave_dock_widget (void)=default
 
bool adopted (void) const
 
void set_adopted (bool adopted=true)
 
void set_main_window (main_window *mw)
 
void set_predecessor_widget (octave_dock_widget *prev_widget)
 
void set_title (const QString &)
 

Protected Slots

virtual void do_undo (void)
 Slot to handle undo. More...
 
bool eventFilter (QObject *obj, QEvent *e)
 Event filter for double clicks into the window decoration elements. More...
 
virtual void toplevel_change (bool)
 
virtual void copyClipboard (void)
 Slots to handle copy & paste. More...
 
virtual void pasteClipboard (void)
 Slots to handle copy & paste. More...
 
virtual void selectAll (void)
 Slots to handle copy & paste. More...
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *e)
 
bool event (QEvent *event)
 
QWidgetfocusWidget (void)
 

Protected Attributes

QAction * m_close_action
 
QToolButtonm_close_button
 
QAbstractButton * m_default_close_button
 
QAbstractButton * m_default_float_button
 
QAction * m_dock_action
 
QToolButtonm_dock_button
 
int m_icon_size
 
base_qobjectm_octave_qobj
 
QWidgetm_title_widget
 

Private Slots

void change_visibility (bool)
 

Private Member Functions

void set_focus_predecessor (void)
 
void set_style (bool active)
 
void store_geometry (void)
 

Private Attributes

bool m_adopted
 
QColor m_bg_color
 
QColor m_bg_color_active
 
bool m_custom_style
 
QColor m_fg_color
 
QColor m_fg_color_active
 
bool m_focus_follows_mouse
 
QString m_icon_color
 
QString m_icon_color_active
 
main_windowm_main_window
 Stores the parent, since we are reparenting to 0. More...
 
octave_dock_widgetm_predecessor_widget
 
QRect m_recent_dock_geom
 
QRect m_recent_float_geom
 
int m_title_3d
 
bool m_waiting_for_mouse_button_release
 

Detailed Description

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

Constructor & Destructor Documentation

◆ octave_dock_widget()

◆ ~octave_dock_widget()

octave_dock_widget::~octave_dock_widget ( void  )
default

Member Function Documentation

◆ activate

void octave_dock_widget::activate ( void  )
virtualslot

◆ active_changed

void octave_dock_widget::active_changed ( bool  active)
signal

Custom signal that tells whether a user has clicked away that dock widget, i.e.

the active dock widget has changed.

Referenced by change_visibility(), closeEvent(), handle_visibility(), and init_window_menu_entry().

◆ adopted()

bool octave_dock_widget::adopted ( void  ) const
inline

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

References m_adopted.

Referenced by set_adopted().

◆ change_visibility

void octave_dock_widget::change_visibility ( bool  )
privateslot

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

References active_changed().

Referenced by octave_dock_widget().

◆ closeEvent()

void octave_dock_widget::closeEvent ( QCloseEvent *  e)
protectedvirtual

◆ copyClipboard

virtual void label_dock_widget::copyClipboard ( void  )
inlineprotectedvirtualslotinherited

Slots to handle copy & paste.

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

Referenced by set_main_window().

◆ default_dock

void octave_dock_widget::default_dock ( bool  not_used = false)
slot

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

Referenced by toplevel_change().

◆ do_undo

virtual void label_dock_widget::do_undo ( void  )
inlineprotectedvirtualslotinherited

Slot to handle undo.

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

Referenced by set_main_window().

◆ event()

bool octave_dock_widget::event ( QEvent *  event)
protected

◆ eventFilter

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

Event filter for double clicks into the window decoration elements.

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

References m_focus_follows_mouse.

◆ focusWidget()

QWidget * octave_dock_widget::focusWidget ( void  )
protected

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

References Faddeeva::w().

Referenced by file_editor::editor_tab_has_focus().

◆ handle_active_dock_changed

void octave_dock_widget::handle_active_dock_changed ( octave_dock_widget w_old,
octave_dock_widget w_new 
)
slot

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

References m_custom_style, and set_style().

Referenced by main_window::make_dock_widget_connections().

◆ handle_settings

◆ handle_visibility

void octave_dock_widget::handle_visibility ( bool  visible)
virtualslot

◆ init_window_menu_entry

void octave_dock_widget::init_window_menu_entry ( void  )
slot

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

References active_changed().

Referenced by main_window::make_dock_widget_connections().

◆ make_widget

◆ make_window

◆ moveEvent

void octave_dock_widget::moveEvent ( QMoveEvent *  event)
slot

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

References event(), and store_geometry().

◆ notice_settings

virtual void octave_dock_widget::notice_settings ( const gui_settings )
inlinevirtualslot

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

Referenced by handle_settings().

◆ pasteClipboard

virtual void label_dock_widget::pasteClipboard ( void  )
inlineprotectedvirtualslotinherited

Slots to handle copy & paste.

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

Referenced by set_main_window().

◆ queue_make_widget

void octave_dock_widget::queue_make_widget ( void  )
signal

◆ queue_make_window

void octave_dock_widget::queue_make_window ( bool  widget_was_dragged)
signal

Referenced by octave_dock_widget(), and event().

◆ resizeEvent

void octave_dock_widget::resizeEvent ( QResizeEvent *  event)
slot

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

References event(), and store_geometry().

◆ save_settings

◆ selectAll

virtual void label_dock_widget::selectAll ( void  )
inlineprotectedvirtualslotinherited

Slots to handle copy & paste.

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

Referenced by set_main_window().

◆ set_adopted()

void octave_dock_widget::set_adopted ( bool  adopted = true)
inline

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

References adopted(), and m_adopted.

◆ set_focus_predecessor()

◆ set_main_window()

◆ set_predecessor_widget()

void octave_dock_widget::set_predecessor_widget ( octave_dock_widget prev_widget)

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

References m_predecessor_widget.

Referenced by main_window::focus_changed().

◆ set_style()

◆ set_title()

◆ store_geometry()

void octave_dock_widget::store_geometry ( void  )
private

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

References m_recent_dock_geom, and m_recent_float_geom.

Referenced by moveEvent(), resizeEvent(), and save_settings().

◆ toplevel_change

void octave_dock_widget::toplevel_change ( bool  toplevel)
protectedvirtualslot

Member Data Documentation

◆ m_adopted

bool octave_dock_widget::m_adopted
private

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

Referenced by adopted(), make_widget(), and set_adopted().

◆ m_bg_color

QColor octave_dock_widget::m_bg_color
private

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

Referenced by handle_settings(), and set_style().

◆ m_bg_color_active

QColor octave_dock_widget::m_bg_color_active
private

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

Referenced by handle_settings(), and set_style().

◆ m_close_action

QAction* label_dock_widget::m_close_action
protectedinherited

◆ m_close_button

QToolButton* label_dock_widget::m_close_button
protectedinherited

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

Referenced by set_style().

◆ m_custom_style

bool octave_dock_widget::m_custom_style
private

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

Referenced by handle_active_dock_changed(), handle_settings(), and set_style().

◆ m_default_close_button

QAbstractButton* label_dock_widget::m_default_close_button
protectedinherited

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

◆ m_default_float_button

QAbstractButton* label_dock_widget::m_default_float_button
protectedinherited

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

Referenced by octave_dock_widget(), make_widget(), make_window(), and toplevel_change().

◆ m_dock_action

QAction* label_dock_widget::m_dock_action
protectedinherited

◆ m_dock_button

QToolButton* label_dock_widget::m_dock_button
protectedinherited

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

Referenced by set_style().

◆ m_fg_color

QColor octave_dock_widget::m_fg_color
private

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

Referenced by handle_settings(), and set_style().

◆ m_fg_color_active

QColor octave_dock_widget::m_fg_color_active
private

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

Referenced by handle_settings(), and set_style().

◆ m_focus_follows_mouse

bool octave_dock_widget::m_focus_follows_mouse
private

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

Referenced by eventFilter(), and handle_settings().

◆ m_icon_color

QString octave_dock_widget::m_icon_color
private

◆ m_icon_color_active

QString octave_dock_widget::m_icon_color_active
private

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

Referenced by handle_settings(), and set_style().

◆ m_icon_size

int label_dock_widget::m_icon_size
protectedinherited

◆ m_main_window

main_window* octave_dock_widget::m_main_window
private

Stores the parent, since we are reparenting to 0.

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

Referenced by octave_dock_widget(), handle_settings(), make_widget(), make_window(), and set_main_window().

◆ m_octave_qobj

base_qobject& label_dock_widget::m_octave_qobj
protectedinherited

◆ m_predecessor_widget

octave_dock_widget* octave_dock_widget::m_predecessor_widget
private

◆ m_recent_dock_geom

QRect octave_dock_widget::m_recent_dock_geom
private

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

Referenced by handle_settings(), make_widget(), save_settings(), and store_geometry().

◆ m_recent_float_geom

QRect octave_dock_widget::m_recent_float_geom
private

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

Referenced by handle_settings(), make_window(), save_settings(), and store_geometry().

◆ m_title_3d

int octave_dock_widget::m_title_3d
private

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

Referenced by octave_dock_widget(), handle_settings(), and set_style().

◆ m_title_widget

QWidget* label_dock_widget::m_title_widget
protectedinherited

◆ m_waiting_for_mouse_button_release

bool octave_dock_widget::m_waiting_for_mouse_button_release
private

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

Referenced by event(), make_window(), and toplevel_change().


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