Last change
on this file since 208 was 160, checked in by dmik, 19 years ago |
Imported table and iconview modules and a bunch of dependent examples from the official release 3.3.1 from Trolltech.
|
-
Property svn:keywords
set to
Id
|
File size:
926 bytes
|
Line | |
---|
1 | #ifndef SETDATAFORM_H
|
---|
2 | #define SETDATAFORM_H
|
---|
3 |
|
---|
4 | #include "element.h"
|
---|
5 |
|
---|
6 | #include <qdialog.h>
|
---|
7 |
|
---|
8 | class QHBoxLayout;
|
---|
9 | class QPushButton;
|
---|
10 | class QTable;
|
---|
11 | class QVBoxLayout;
|
---|
12 |
|
---|
13 |
|
---|
14 | class SetDataForm: public QDialog
|
---|
15 | {
|
---|
16 | Q_OBJECT
|
---|
17 | public:
|
---|
18 | SetDataForm( ElementVector *elements, int decimalPlaces,
|
---|
19 | QWidget *parent = 0, const char *name = "set data form",
|
---|
20 | bool modal = TRUE, WFlags f = 0 );
|
---|
21 | ~SetDataForm() {}
|
---|
22 |
|
---|
23 | public slots:
|
---|
24 | void setColor();
|
---|
25 | void setColor( int row, int col );
|
---|
26 | void currentChanged( int row, int col );
|
---|
27 | void valueChanged( int row, int col );
|
---|
28 |
|
---|
29 | protected slots:
|
---|
30 | void accept();
|
---|
31 |
|
---|
32 | private:
|
---|
33 | QTable *table;
|
---|
34 | QPushButton *colorPushButton;
|
---|
35 | QPushButton *okPushButton;
|
---|
36 | QPushButton *cancelPushButton;
|
---|
37 |
|
---|
38 | protected:
|
---|
39 | QVBoxLayout *tableButtonBox;
|
---|
40 | QHBoxLayout *buttonBox;
|
---|
41 |
|
---|
42 | private:
|
---|
43 | ElementVector *m_elements;
|
---|
44 | int m_decimalPlaces;
|
---|
45 | };
|
---|
46 |
|
---|
47 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.