GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::tab_bar Class Reference

#include "tab-bar.h"

Inheritance diagram for octave::tab_bar:
Collaboration diagram for octave::tab_bar:

Public Slots

void move_tab_left (void)
 
void move_tab_right (void)
 
void sort_tabs_alph (void)
 
void switch_left_tab (void)
 
void switch_right_tab (void)
 

Signals

void close_current_tab_signal (bool)
 

Public Member Functions

 tab_bar (QWidget *p)
 
 ~tab_bar (void)
 
QMenuget_context_menu (void)
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 

Private Member Functions

void switch_tab (int direction, bool movetab=false)
 

Private Attributes

QMenum_context_menu
 

Detailed Description

Definition at line 40 of file tab-bar.h.

Constructor & Destructor Documentation

◆ tab_bar()

octave::tab_bar::tab_bar ( QWidget p)

Definition at line 37 of file tab-bar.cc.

◆ ~tab_bar()

octave::tab_bar::~tab_bar ( void  )

Definition at line 41 of file tab-bar.cc.

References m_context_menu.

Member Function Documentation

◆ close_current_tab_signal

void octave::tab_bar::close_current_tab_signal ( bool  )
signal

Referenced by mousePressEvent().

◆ get_context_menu()

QMenu* octave::tab_bar::get_context_menu ( void  )
inline

Definition at line 50 of file tab-bar.h.

References m_context_menu.

Referenced by octave::file_editor::construct().

◆ mousePressEvent()

void octave::tab_bar::mousePressEvent ( QMouseEvent *  event)
protected

Definition at line 134 of file tab-bar.cc.

References close_current_tab_signal(), and m_context_menu.

◆ move_tab_left

void octave::tab_bar::move_tab_left ( void  )
slot

Definition at line 57 of file tab-bar.cc.

References switch_tab().

◆ move_tab_right

void octave::tab_bar::move_tab_right ( void  )
slot

Definition at line 64 of file tab-bar.cc.

References switch_tab().

◆ sort_tabs_alph

void octave::tab_bar::sort_tabs_alph ( void  )
slot

Definition at line 96 of file tab-bar.cc.

◆ switch_left_tab

void octave::tab_bar::switch_left_tab ( void  )
slot

Definition at line 47 of file tab-bar.cc.

References switch_tab().

◆ switch_right_tab

void octave::tab_bar::switch_right_tab ( void  )
slot

Definition at line 52 of file tab-bar.cc.

References switch_tab().

◆ switch_tab()

void octave::tab_bar::switch_tab ( int  direction,
bool  movetab = false 
)
private

Definition at line 71 of file tab-bar.cc.

Referenced by move_tab_left(), move_tab_right(), switch_left_tab(), and switch_right_tab().

Member Data Documentation

◆ m_context_menu

QMenu* octave::tab_bar::m_context_menu
private

Definition at line 70 of file tab-bar.h.

Referenced by ~tab_bar(), get_context_menu(), and mousePressEvent().


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