GNU Octave  4.4.1
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 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 37 of file tab-bar.h.

Constructor & Destructor Documentation

◆ tab_bar()

octave::tab_bar::tab_bar ( QWidget p)

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

◆ ~tab_bar()

octave::tab_bar::~tab_bar ( void  )

Definition at line 38 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 47 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 94 of file tab-bar.cc.

References close_current_tab_signal(), i, and m_context_menu.

◆ move_tab_left

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

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

References switch_tab().

◆ move_tab_right

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

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

References switch_tab().

◆ switch_left_tab

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

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

References switch_tab().

◆ switch_right_tab

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

Definition at line 49 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 68 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 66 of file tab-bar.h.

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


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