source: trunk/examples/chart/setdataform.h@ 208

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
8class QHBoxLayout;
9class QPushButton;
10class QTable;
11class QVBoxLayout;
12
13
14class SetDataForm: public QDialog
15{
16 Q_OBJECT
17public:
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
23public 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
29protected slots:
30 void accept();
31
32private:
33 QTable *table;
34 QPushButton *colorPushButton;
35 QPushButton *okPushButton;
36 QPushButton *cancelPushButton;
37
38protected:
39 QVBoxLayout *tableButtonBox;
40 QHBoxLayout *buttonBox;
41
42private:
43 ElementVector *m_elements;
44 int m_decimalPlaces;
45};
46
47#endif
Note: See TracBrowser for help on using the repository browser.