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

menuframe.h

00001 
00002 /***************************************************************************
00003  *   Copyright (C) 2005 by Bjoern Erik Nilsen & Fredrik Berg Kjoelstad     *
00004  *   bjoern_erik_nilsen@hotmail.com & fredrikbk@hotmail.com                *
00005  *                                                                         *
00006  *   This program is free software; you can redistribute it and/or modify  *
00007  *   it under the terms of the GNU General Public License as published by  *
00008  *   the Free Software Foundation; either version 2 of the License, or     *
00009  *   (at your option) any later version.                                   *
00010  *                                                                         *
00011  *   This program is distributed in the hope that it will be useful,       *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00014  *   GNU General Public License for more details.                          *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU General Public License     *
00017  *   along with this program; if not, write to the                         *
00018  *   Free Software Foundation, Inc.,                                       *
00019  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00020  ***************************************************************************/
00021 #ifndef MENUFRAME_H
00022 #define MENUFRAME_H
00023 
00024 #include <qframe.h>
00025 #include <qspinbox.h>
00026 #include <qlineedit.h>
00027 
00038 class MenuFrame : public QFrame
00039 {
00040         Q_OBJECT
00041 public:
00048         MenuFrame(QWidget * parent = 0, const char * name = 0);
00049                         
00060         void setFocusWidget(QSpinBox * focusSpinBox = 0);
00061         
00062         
00073         void setFocusWidget(QLineEdit * focusLineEdit = 0);
00074         
00075 protected:
00081         void mousePressEvent( QMouseEvent * e);
00082         
00083 private:
00084         QSpinBox *focusSpinBox;
00085         QLineEdit *focusLineEdit;
00086         
00087 public slots:
00091         virtual void open();
00092         
00098         virtual void close(QWidget * newFocusWidget);
00099 };
00100 
00101 #endif

Generated on Thu May 19 01:51:21 2005 for stopmotion.kdevelop by  doxygen 1.4.2