Vidalia  0.3.1
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
VAttachButton Class Reference

#include <VAttachButton.h>

Inheritance diagram for VAttachButton:

Public Slots

void toggleAttach ()
 

Signals

void attachTab ()
 
void detachTab ()
 

Public Member Functions

 VAttachButton (QWidget *parent=0)
 
 ~VAttachButton ()
 
void setTab (VidaliaTab *tab)
 
VidaliaTabgetTab ()
 

Private Attributes

VidaliaTab_tab
 
bool _attached
 

Detailed Description

Definition at line 23 of file VAttachButton.h.

Constructor & Destructor Documentation

VAttachButton::VAttachButton ( QWidget *  parent = 0)

Definition at line 20 of file VAttachButton.cpp.

References _attached, _tab, and IMG_DETACH.

VAttachButton::~VAttachButton ( )

Definition at line 30 of file VAttachButton.cpp.

References disconnect().

Member Function Documentation

void VAttachButton::attachTab ( )
signal

Emitted when the button is pressed and the tab is detached

Referenced by toggleAttach().

void VAttachButton::detachTab ( )
signal

Emitted when the button is pressed and the tab is attached

Referenced by toggleAttach().

VidaliaTab * VAttachButton::getTab ( )

Returns the parent tab for this button

Definition at line 43 of file VAttachButton.cpp.

References _tab.

Referenced by MainWindow::detachTab().

void VAttachButton::setTab ( VidaliaTab tab)

Sets the parent tab for this button

Definition at line 36 of file VAttachButton.cpp.

References _tab, connect(), and toggleAttach().

Referenced by MainWindow::addTab().

void VAttachButton::toggleAttach ( )
slot

Handles the onClicked signal

Definition at line 49 of file VAttachButton.cpp.

References _attached, attachTab(), and detachTab().

Referenced by setTab().

Member Data Documentation

bool VAttachButton::_attached
private

Definition at line 47 of file VAttachButton.h.

Referenced by toggleAttach(), and VAttachButton().

VidaliaTab* VAttachButton::_tab
private

Definition at line 46 of file VAttachButton.h.

Referenced by getTab(), setTab(), and VAttachButton().


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