Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

MenuFrame Class Reference

#include <menuframe.h>

Inheritance diagram for MenuFrame:

FramePreferencesMenu List of all members.

Public Slots

virtual void open ()
virtual void close (QWidget *newFocusWidget)

Public Member Functions

 MenuFrame (QWidget *parent=0, const char *name=0)
void setFocusWidget (QSpinBox *focusSpinBox=0)
void setFocusWidget (QLineEdit *focusLineEdit=0)

Protected Member Functions

void mousePressEvent (QMouseEvent *e)

Detailed Description

A customized GUI menu class for embedded menues which shouldn't be visible at all times. The menues are hidden and pops up at various places in the gui interface.

This class allow you to create preferences/etc. menues without resorting to the modal cover-the-gui menues.

Author:
Bjoern Erik Nilsen & Fredrik Berg Kjoelstad


Constructor & Destructor Documentation

MenuFrame::MenuFrame QWidget *  parent = 0,
const char *  name = 0
 

Creates and sets up the menu frame.

Parameters:
parent the parent widget.
name the name of the menu.


Member Function Documentation

void MenuFrame::close QWidget *  newFocusWidget  )  [virtual, slot]
 

Closes the menu and turns the focus to the newFocusWidget.

Parameters:
newFocusWidget the widget who will recieve the focus after this menu closes.

void MenuFrame::mousePressEvent QMouseEvent *  e  )  [protected]
 

Overloaded function to intercept when the user press the mouse inside the menu. (So that the mainwindow doesn't get the event).

Parameters:
e information about the event.

void MenuFrame::open  )  [virtual, slot]
 

Opens the menu.

Reimplemented in FramePreferencesMenu.

void MenuFrame::setFocusWidget QLineEdit *  focusLineEdit = 0  ) 
 

Sets the focus widget to the QLineEdit: focusSpinBox.

NB: One should only use use one of the two setFocusWidget functions. If both are used the spinbox will be used. (A bit hacky but saves me from creating a custom(/messy!) class hierarchy and gives me time to go out and have a few beers tonight).

Parameters:
focusLineEdit the focuswidget of this menu.

void MenuFrame::setFocusWidget QSpinBox *  focusSpinBox = 0  ) 
 

Sets the focus widget to the QSpinBox: focusSpinBox.

NB: One should only use use one of the two setFocusWidget functions. If both are used the spinbox will be used. (A bit hacky but saves me from creating a custom(/messy!) class hierarchy and gives me time to go out and have a few beers tonight).

Parameters:
focusSpinBox the focuswidget of this menu.


The documentation for this class was generated from the following files:
Generated on Thu May 19 01:51:22 2005 for stopmotion.kdevelop by  doxygen 1.4.2