#include "tab-bar.h"
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 | |
QMenu * | get_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 | |
QMenu * | m_context_menu |
QList< QAction * > | m_ctx_actions |
int | m_rotated |
tab_bar::tab_bar | ( | QWidget * | p | ) |
Definition at line 41 of file tab-bar.cc.
|
default |
|
signal |
Referenced by file_editor_tab_widget::file_editor_tab_widget(), and mousePressEvent().
|
privateslot |
Definition at line 276 of file tab-bar.cc.
References m_ctx_actions.
Referenced by mousePressEvent().
|
inline |
Definition at line 55 of file tab-bar.h.
Referenced by file_editor::construct().
|
protected |
Definition at line 178 of file tab-bar.cc.
References close_current_tab_signal(), ctx_menu_activated(), m_context_menu, and m_ctx_actions.
|
slot |
Definition at line 61 of file tab-bar.cc.
References switch_tab().
|
slot |
Definition at line 66 of file tab-bar.cc.
References switch_tab().
|
protected |
Definition at line 146 of file tab-bar.cc.
References m_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().
|
slot |
Definition at line 94 of file tab-bar.cc.
|
slot |
Definition at line 51 of file tab-bar.cc.
References switch_tab().
|
slot |
Definition at line 56 of file tab-bar.cc.
References switch_tab().
|
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().
QSize tab_bar::tabSizeHint | ( | int | idx | ) | const |
Definition at line 136 of file tab-bar.cc.
References m_rotated.
|
private |
Definition at line 83 of file tab-bar.h.
Referenced by mousePressEvent().
|
private |
Definition at line 84 of file tab-bar.h.
Referenced by ctx_menu_activated(), and mousePressEvent().
|
private |
Definition at line 85 of file tab-bar.h.
Referenced by paintEvent(), set_rotated(), and tabSizeHint().