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

#include "dw-main-window.h"

Inheritance diagram for dw_main_window:
Collaboration diagram for dw_main_window:

Public Slots

void notice_settings (const gui_settings *)
 

Public Member Functions

 dw_main_window (base_qobject &oct_qboj, QWidget *parent=nullptr)
 
 dw_main_window (const dw_main_window &)=delete
 
 ~dw_main_window (void)=default
 
dw_main_windowoperator= (const dw_main_window &)=delete
 

Protected Slots

virtual QMenucreatePopupMenu ()
 
virtual bool event (QEvent *ev)
 

Private Slots

void request_close ()
 
void request_close_all ()
 
void request_close_other ()
 
void request_switch_left ()
 
void request_switch_right ()
 

Private Member Functions

QAction * add_action (QMenu *menu, const QIcon &icon, const QString &text, const char *member, QWidget *receiver)
 
void request_switch (int direction)
 

Private Attributes

QList< QAction * > m_actions_list
 
QAction * m_close_action
 
QAction * m_close_all_action
 
QAction * m_close_others_action
 
QList< QDockWidget * > m_dw_list
 
base_qobjectm_octave_qobj
 
QAction * m_switch_left_action
 
QAction * m_switch_right_action
 

Detailed Description

Definition at line 37 of file dw-main-window.h.

Constructor & Destructor Documentation

◆ dw_main_window() [1/2]

dw_main_window::dw_main_window ( base_qobject oct_qboj,
QWidget parent = nullptr 
)

Definition at line 45 of file dw-main-window.cc.

References resource_manager::get_settings(), and resource_manager::icon().

◆ ~dw_main_window()

dw_main_window::~dw_main_window ( void  )
default

◆ dw_main_window() [2/2]

dw_main_window::dw_main_window ( const dw_main_window )
delete

Member Function Documentation

◆ add_action()

QAction * dw_main_window::add_action ( QMenu menu,
const QIcon &  icon,
const QString &  text,
const char *  member,
QWidget receiver 
)
private

Definition at line 104 of file dw-main-window.cc.

References r.

◆ createPopupMenu

QMenu * dw_main_window::createPopupMenu ( void  )
protectedvirtualslot

Definition at line 82 of file dw-main-window.cc.

References m_close_action, m_close_all_action, and m_close_others_action.

◆ event

bool dw_main_window::event ( QEvent *  ev)
protectedvirtualslot

Definition at line 218 of file dw-main-window.cc.

References m_actions_list, and m_dw_list.

◆ notice_settings

◆ operator=()

dw_main_window& dw_main_window::operator= ( const dw_main_window )
delete

◆ request_close

void dw_main_window::request_close ( )
privateslot

Definition at line 145 of file dw-main-window.cc.

References m_dw_list.

◆ request_close_all

void dw_main_window::request_close_all ( )
privateslot

Definition at line 170 of file dw-main-window.cc.

References m_dw_list.

◆ request_close_other

void dw_main_window::request_close_other ( )
privateslot

Definition at line 160 of file dw-main-window.cc.

References m_dw_list.

◆ request_switch()

void dw_main_window::request_switch ( int  direction)
private

Definition at line 189 of file dw-main-window.cc.

References m_dw_list, and next.

Referenced by request_switch_left(), and request_switch_right().

◆ request_switch_left

void dw_main_window::request_switch_left ( )
privateslot

Definition at line 177 of file dw-main-window.cc.

References request_switch().

◆ request_switch_right

void dw_main_window::request_switch_right ( )
privateslot

Definition at line 183 of file dw-main-window.cc.

References request_switch().

Member Data Documentation

◆ m_actions_list

QList<QAction *> dw_main_window::m_actions_list
private

Definition at line 90 of file dw-main-window.h.

Referenced by event().

◆ m_close_action

QAction* dw_main_window::m_close_action
private

Definition at line 83 of file dw-main-window.h.

Referenced by createPopupMenu(), and notice_settings().

◆ m_close_all_action

QAction* dw_main_window::m_close_all_action
private

Definition at line 84 of file dw-main-window.h.

Referenced by createPopupMenu(), and notice_settings().

◆ m_close_others_action

QAction* dw_main_window::m_close_others_action
private

Definition at line 85 of file dw-main-window.h.

Referenced by createPopupMenu(), and notice_settings().

◆ m_dw_list

QList<QDockWidget *> dw_main_window::m_dw_list
private

◆ m_octave_qobj

base_qobject& dw_main_window::m_octave_qobj
private

Definition at line 79 of file dw-main-window.h.

Referenced by notice_settings().

◆ m_switch_left_action

QAction* dw_main_window::m_switch_left_action
private

Definition at line 87 of file dw-main-window.h.

Referenced by notice_settings().

◆ m_switch_right_action

QAction* dw_main_window::m_switch_right_action
private

Definition at line 88 of file dw-main-window.h.

Referenced by notice_settings().


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