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

tveditview.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 
00021 #ifndef Tveditview_H
00022 #define Tveditview_H
00023 
00024 #include <qwidget.h>
00025 #include <qlist.h>
00026 #include <qdialog.h>
00027 #include <qmap.h>
00028 #include "../db/common.h"
00029 
00030 class QGrid;
00031 class QSignalMapper;
00032 class QCheckBox;
00033 
00034 class TVEditView : public QDialog
00035 {
00036         Q_OBJECT
00037 
00038 public:
00039         TVEditView(TableState *s, DataElem *d, QWidget* parent = 0, 
00040                 const char* name = 0, WFlags fl = 0);
00041         ~TVEditView();                                                          
00042     
00043     static bool openEditItemDialog(TableState *s, DataElem *d, QWidget *parent);
00044 
00045 protected slots:
00046     void toggleEnabled(int);
00047 
00048 protected:
00049 
00050     void setData(TableState *s, DataElem *d);
00051 
00052     QGrid *editDisplay;
00053     QList<QWidget> edits;
00054     QList<QCheckBox> buttons;
00055     QSignalMapper *toggles;
00056 
00057     QMap<int,int> keyIds;
00058 
00059         int num_edits;
00060 };
00061 
00062 #endif

Generated on Sat Nov 5 16:17:08 2005 for OPIE by  doxygen 1.4.2