iVS3D v2.0.0
Loading...
Searching...
No Matches
colmapqueueitem.h
1#ifndef LIB3D_OTS_UI_COLMAPWRAPPER_QUEUEITEM_H
2#define LIB3D_OTS_UI_COLMAPWRAPPER_QUEUEITEM_H
3
4// Qt
5#include <QWidget>
6#include <QTime>
7
8#include "../colmapwrapper.h"
9
10namespace lib3d {
11namespace ots {
12namespace ui {
13namespace colmapwrapper {
14
15namespace Ui {
16 class QueueItem;
17 class QueueItemRunning;
18 class QueueItemFinished;
19 class QueueItemFailed;
20
21}
22
27class QueueItem : public QWidget
28{
29 Q_OBJECT
30
31 //--- METHOD DECLERATION ---//
32 public:
33 explicit QueueItem(ColmapWrapper::SJob mJob, QWidget *parent = 0);
34 ~QueueItem();
35
36
37 signals:
38 void bumpDownJob(const ColmapWrapper::SJob mJob);
39 void bumpUpJob(const ColmapWrapper::SJob mJob);
40 void cancelJob(const ColmapWrapper::SJob mJob);
41 void deleteJob(const ColmapWrapper::SJob mJob);
42 void editJob(const ColmapWrapper::SJob mJob);
43
44 public slots:
45 void onUpdateToDarkTheme();
46 void onUpdateToLightTheme();
47
48
49 private slots:
50 void onBtnUpClicked();
51 void onBtnDownClicked();
52 void onBtnOptionsClicked();
53 void onBtnCancelClicked();
54
55 //--- MEMBER DECLERATION ---//
56
57 private:
59 Ui::QueueItem *ui;
60};
61
67class QueueItemActive : public QWidget
68{
69 Q_OBJECT
70
71 //--- METHOD DECLERATION ---///
72
73 public:
74 explicit QueueItemActive(ColmapWrapper::SJob job, QWidget *parent = 0);
76
77 void setProgress(int progress);
78
79 signals:
80 void cancel();
81
82 public slots:
83 void onUpdateToDarkTheme();
84 void onUpdateToLightTheme();
85
86 private slots:
87 void onBtnOptionsClicked();
88
89 //--- MEMBER DECLERATION ---//
90
91 private:
93 Ui::QueueItemRunning *ui;
94};
95
100class QueueItemFinished : public QWidget
101{
102 Q_OBJECT
103
104 //--- METHOD DECLERATION ---///
105
106 public:
107 explicit QueueItemFinished(ColmapWrapper::SJob job, QWidget *parent = 0);
109
110 void set(ColmapWrapper::SJob job);
111
112 signals:
113 void deleteJob(const ColmapWrapper::SJob);
114
115 public slots:
116 void onUpdateToDarkTheme();
117 void onUpdateToLightTheme();
118
119 private slots:
120
121 void onBtnDeleteClicked();
122
123 //--- MEMBER DECLERATION ---//
124
125 private:
127 Ui::QueueItemFinished *ui;
128};
129
134class QueueItemFailed : public QWidget
135{
136 Q_OBJECT
137
138 //--- METHOD DECLERATION ---///
139
140 public:
141 explicit QueueItemFailed(ColmapWrapper::SJob job, QWidget *parent = 0);
143
144 void set(ColmapWrapper::SJob job);
145
146 signals:
147 void deleteJob(const ColmapWrapper::SJob);
148
149 public slots:
150 void onUpdateToDarkTheme();
151 void onUpdateToLightTheme();
152
153 private slots:
154
155 void onBtnDeleteClicked();
156
157 //--- MEMBER DECLERATION ---//
158
159 private:
161 Ui::QueueItemFailed *ui;
162};
163
164} // namespace colmapwrapper
165} // namespace ui
166} // namespace ots
167} // namespeace lib3d
168
169#endif // LIB3D_OTS_UI_COLMAPWRAPPER_QUEUEITEM_H
Class providing running queue item for work queue widget.
Definition colmapqueueitem.h:68
Class providing failed queue item for work queue widget.
Definition colmapqueueitem.h:135
Class providing finished queue item for work queue widget.
Definition colmapqueueitem.h:101
Class providing queue item for work queue widget.
Definition colmapqueueitem.h:28
Struct holding information of a single job.
Definition colmapwrapper.h:111