iVS3D v2.0.0
Loading...
Searching...
No Matches
colmapsettingsdialog.h
1#ifndef LIB3D_OTS_UI_COLMAPWRAPPER_SETTINGSDIALOG_H
2#define LIB3D_OTS_UI_COLMAPWRAPPER_SETTINGSDIALOG_H
3
4// Qt
5#include <QObject>
6#include <QDialog>
7#include <QLineEdit>
8#include <QTableWidgetItem>
9
10#include "../colmapwrapper.h"
11#include "applicationsettings.h"
12
13namespace lib3d {
14namespace ots {
15namespace ui {
16namespace colmapwrapper {
17
18namespace Ui {
19 class SettingsDialog;
20}
21
26class SettingsDialog : public QDialog
27{
28 Q_OBJECT
29
30 public:
31 explicit SettingsDialog(lib3d::ots::ColmapWrapper* ipWrapper,
32 QWidget *parent = nullptr);
34
35 public slots:
36 void onUpdateToDarkTheme();
37 void onUpdateToLightTheme();
38 void onShow();
39 void onStatusChanged();
40 void onQuit();
41
42 private slots:
43 void onLocalColmapBinaryPushButtonPressed();
44 void onLocalOpenMVSBinaryPushButtonPressed();
45 void onLocalWorkspacePushButtonPressed();
46 void onSelectMountPntPushButtonPressed();
47 void onConnectionComboBoxIdxChanged(int idx);
48 void onInstallScriptsPushButtonPressed();
49 void onApply();
50 void onCancel();
51 void onRestoreDefaults();
52 void onAddCustomCommand();
53 void onRemoveCustomCommand(int row);
54 void onClickonExperimental();
55
56 private:
57 Ui::SettingsDialog *ui;
58
61
63
64 void settingsChanged();
65 void updateStatusMsg(const QPair<ColmapWrapper::ESetupTestResult,QString> &test, QLineEdit *input = nullptr);
66 void loadCustomCommands();
67 void updateRemoveButtonCallbacks();
68 void addEmptyRow();
69
70
71
72};
73
74} // namespace colmapwrapper
75} // namespace ui
76} // namespace ots
77} // namespeace lib3d
78
79#endif // LIB3D_OTS_UI_COLMAPWRAPPER_SETTINGSDIALOG_H
Wrapperclass for integration of COLMAP.
Definition colmapwrapper.h:53
Class providing dialog for settings of ColmapWrapper.
Definition colmapsettingsdialog.h:27
lib3d::ots::ColmapWrapper * mpColmapWrapper
Member pointer to wrapper.
Definition colmapsettingsdialog.h:60
Definition colmapwrapper.h:217