Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

YQMenuButton Class Reference

#include <YQMenuButton.h>

Inheritance diagram for YQMenuButton:

YMenuButton YWidget List of all members.

Public Member Functions

 YQMenuButton (QWidget *parent, const YWidgetOpt &opt, YCPString label)
void setEnabling (bool enabled)
long nicesize (YUIDimension dim)
void setSize (long newWidth, long newHeight)
void setLabel (const YCPString &label)
virtual bool setKeyboardFocus ()
virtual void createMenu ()
void createMenu (YMenuItem *ymenu, QPopupMenu *_qt_menu)

Protected Slots

void menuEntryActivated (int menu_item_index)
void returnNow ()

Protected Attributes

QPushButton * _qt_pushbutton
int _selected_item_index

Constructor & Destructor Documentation

YQMenuButton::YQMenuButton QWidget *  parent,
const YWidgetOpt opt,
YCPString  label
 

Constructor.


Member Function Documentation

void YQMenuButton::createMenu YMenuItem ymenu,
QPopupMenu *  _qt_menu
 

Recursively create the menu structure.

void YQMenuButton::createMenu  )  [virtual]
 

Actually create the menu structure.

Reimplemented - inherited from YMenuButton.

Implements YMenuButton.

void YQMenuButton::menuEntryActivated int  menu_item_index  )  [protected, slot]
 

Triggered when any menu item is activated.

long YQMenuButton::nicesize YUIDimension  dim  )  [virtual]
 

Minimum size the widget should have to make it look and feel nice. Dimension, either YD_HORIZ or YD_VERT

Implements YWidget.

void YQMenuButton::returnNow  )  [protected, slot]
 

Triggered via menuEntryActivated() by zero timer to get back in sync with the Qt event loop.

void YQMenuButton::setEnabling bool  enabled  )  [virtual]
 

Inherited from YWidget: Sets the enabled state of the widget. All new widgets are enabled per definition. Only enabled widgets can take user input.

Reimplemented from YWidget.

bool YQMenuButton::setKeyboardFocus  )  [virtual]
 

Accept the keyboard focus.

Reimplemented from YWidget.

void YQMenuButton::setLabel const YCPString label  )  [virtual]
 

Changes the label of the button

Reimplemented from YMenuButton.

void YQMenuButton::setSize long  newWidth,
long  newHeight
[virtual]
 

Sets the new size of the widget.

Reimplemented from YWidget.


Member Data Documentation

QPushButton* YQMenuButton::_qt_pushbutton [protected]
 

int YQMenuButton::_selected_item_index [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Oct 14 19:03:48 2005 for yast2-qt by doxygen 1.3.6