OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
operation.hpp
Go to the documentation of this file.
1 #ifndef CSV_DOC_OPERATION_H
2 #define CSV_DOC_OPERATION_H
3 
4 #include <QObject>
5 
6 class QHBoxLayout;
7 class QPushButton;
8 class QProgressBar;
9 
10 namespace CSVDoc
11 {
12  class Operation : public QObject
13  {
14  Q_OBJECT
15 
16  int mType;
17  bool mStalling;
18  QProgressBar *mProgressBar;
19  QPushButton *mAbortButton;
20  QHBoxLayout *mLayout;
21 
22  // not implemented
23  Operation (const Operation&);
25 
26  void updateLabel (int threads = -1);
27 
28  public:
29 
30  Operation (int type, QWidget *parent);
31  ~Operation();
32 
33  void setProgress (int current, int max, int threads);
34 
35  int getType() const;
36  QHBoxLayout *getLayout() const;
37 
38  private:
39 
40  void setBarColor (int type);
41  void initWidgets();
42 
43  signals:
44 
45  void abortOperation (int type);
46 
47  private slots:
48 
49  void abortOperation();
50  };
51 }
52 
53 #endif
static const struct @2 signals[]
QHBoxLayout * mLayout
Definition: operation.hpp:20
~Operation()
Definition: operation.cpp:50
Definition: operation.hpp:12
QProgressBar * mProgressBar
Definition: operation.hpp:18
int mType
Definition: operation.hpp:16
void setBarColor(int type)
Definition: operation.cpp:81
QPushButton * mAbortButton
Definition: operation.hpp:19
QHBoxLayout * getLayout() const
Definition: operation.cpp:145
void initWidgets()
Definition: operation.cpp:57
bool mStalling
Definition: operation.hpp:17
Operation & operator=(const Operation &)
void abortOperation()
Definition: operation.cpp:150
int getType() const
Definition: operation.cpp:76
void updateLabel(int threads=-1)
Definition: operation.cpp:11
Operation(const Operation &)
void setProgress(int current, int max, int threads)
Definition: operation.cpp:69