Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes
VTab Class Reference

#include <vtabbutton.h>

Inheritance diagram for VTab:
VTabInterface

Public Slots

void setID (int p_id)
 
void setPosition (VTabPosition p_pos)
 

Signals

void toggled (int p_id, bool p_state)
 

Public Member Functions

 VTab (VTabPosition pos=TabLeft, int p_id=-1, QWidget *parent=0l, const char *name=0l)
 
VTabPosition position () const
 
int id () const
 
virtual QSize sizeHint () const
 
virtual void setText (const QString &s)
 
virtual ~VTab ()
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 

Private Slots

void slotToggled (bool b)
 

Private Member Functions

QStyleOptionButton getStyleOption () const
 
virtual void drawButton (QPainter *p)
 
void init ()
 

Private Attributes

VTabPosition m_position
 
int m_id
 

Additional Inherited Members

- Public Types inherited from VTabInterface
enum  VTabPosition { TabLeft, TabRight }
 

Detailed Description

This class provides vertical button which can be used as ordinary button

Author
Gopala Krishna A krish.nosp@m.na.g.nosp@m.gk@gm.nosp@m.ail..nosp@m.com

Definition at line 32 of file vtabbutton.h.

Constructor & Destructor Documentation

VTab::VTab ( VTabPosition  pos = TabLeft,
int  p_id = -1,
QWidget *  parent = 0l,
const char *  name = 0l 
)

Definition at line 28 of file vtabbutton.cpp.

VTab::~VTab ( )
virtual

Definition at line 44 of file vtabbutton.cpp.

Member Function Documentation

void VTab::drawButton ( QPainter *  p)
privatevirtual

Definition at line 79 of file vtabbutton.cpp.

QStyleOptionButton VTab::getStyleOption ( ) const
private

Definition at line 133 of file vtabbutton.cpp.

int VTab::id ( ) const
inline

Definition at line 72 of file vtabbutton.h.

void VTab::init ( )
private

Definition at line 35 of file vtabbutton.cpp.

void VTab::paintEvent ( QPaintEvent *  event)
protected

Definition at line 120 of file vtabbutton.cpp.

VTabPosition VTab::position ( ) const
inline

Definition at line 38 of file vtabbutton.h.

void VTab::setID ( int  p_id)
slot

Definition at line 47 of file vtabbutton.cpp.

void VTab::setPosition ( VTabPosition  p_pos)
slot

Definition at line 52 of file vtabbutton.cpp.

void VTab::setText ( const QString &  s)
virtual

Definition at line 106 of file vtabbutton.cpp.

QSize VTab::sizeHint ( ) const
virtual

Definition at line 62 of file vtabbutton.cpp.

void VTab::slotToggled ( bool  b)
privateslot

Definition at line 115 of file vtabbutton.cpp.

void VTab::toggled ( int  p_id,
bool  p_state 
)
signal

Field Documentation

int VTab::m_id
private

Definition at line 58 of file vtabbutton.h.

VTabPosition VTab::m_position
private

Definition at line 57 of file vtabbutton.h.


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