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

#include "tab-bar.h"

Inheritance diagram for tab_bar:
Collaboration diagram for 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)=default
 
QMenuget_context_menu (void)
 
void set_rotated (int rotated)
 
QSize tabSizeHint (int idx) const
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 
void paintEvent (QPaintEvent *e)
 

Private Slots

void ctx_menu_activated (QAction *a)
 

Private Member Functions

void switch_tab (int direction, bool movetab=false)
 

Private Attributes

QMenum_context_menu
 
QList< QAction * > m_ctx_actions
 
int m_rotated
 

Detailed Description

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

Constructor & Destructor Documentation

◆ tab_bar()

tab_bar::tab_bar ( QWidget p)

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

◆ ~tab_bar()

tab_bar::~tab_bar ( void  )
default

Member Function Documentation

◆ close_current_tab_signal

void tab_bar::close_current_tab_signal ( bool  )
signal

◆ ctx_menu_activated

void tab_bar::ctx_menu_activated ( QAction *  a)
privateslot

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

References m_ctx_actions.

Referenced by mousePressEvent().

◆ get_context_menu()

QMenu* tab_bar::get_context_menu ( void  )
inline

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

Referenced by file_editor::construct().

◆ mousePressEvent()

void tab_bar::mousePressEvent ( QMouseEvent *  event)
protected

◆ move_tab_left

void tab_bar::move_tab_left ( void  )
slot

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

References switch_tab().

◆ move_tab_right

void tab_bar::move_tab_right ( void  )
slot

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

References switch_tab().

◆ paintEvent()

void tab_bar::paintEvent ( QPaintEvent *  e)
protected

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

References m_rotated.

◆ set_rotated()

void tab_bar::set_rotated ( int  rotated)

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

References m_rotated.

Referenced by file_editor::notice_settings().

◆ sort_tabs_alph

void tab_bar::sort_tabs_alph ( void  )
slot

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

◆ switch_left_tab

void tab_bar::switch_left_tab ( void  )
slot

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

References switch_tab().

◆ switch_right_tab

void tab_bar::switch_right_tab ( void  )
slot

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

References switch_tab().

◆ switch_tab()

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

◆ tabSizeHint()

QSize tab_bar::tabSizeHint ( int  idx) const

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

References m_rotated.

Member Data Documentation

◆ m_context_menu

QMenu* tab_bar::m_context_menu
private

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

Referenced by mousePressEvent().

◆ m_ctx_actions

QList<QAction *> tab_bar::m_ctx_actions
private

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

Referenced by ctx_menu_activated(), and mousePressEvent().

◆ m_rotated

int tab_bar::m_rotated
private

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

Referenced by paintEvent(), set_rotated(), and tabSizeHint().


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