-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
176 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
#include "rtiexportdialog.h" | ||
|
||
#include <QVBoxLayout> | ||
#include <QHBoxLayout> | ||
#include <QGroupBox> | ||
#include <QLabel> | ||
#include <QRadioButton> | ||
#include <QSpinBox> | ||
#include <QLineEdit> | ||
#include <QPushButton> | ||
|
||
RtiExportDialog::RtiExportDialog(QWidget *parent): QDialog(parent) { | ||
setWindowTitle("Export RTI"); | ||
setMinimumWidth(400); | ||
|
||
QVBoxLayout *content = new QVBoxLayout(this); | ||
|
||
QGroupBox *format = new QGroupBox("Format"); | ||
content->addWidget(format); | ||
QVBoxLayout *format_layout = new QVBoxLayout(format); | ||
format_layout->addWidget(new QRadioButton("Plain images")); | ||
format_layout->addWidget(new QRadioButton("Deepzoom")); | ||
format_layout->addWidget(new QRadioButton("Tarzoom")); | ||
format_layout->addWidget(new QRadioButton("Interleaved Tarzoom")); | ||
|
||
QHBoxLayout *quality_box = new QHBoxLayout; | ||
content->addLayout(quality_box); | ||
quality_box->addWidget(new QLabel("Jpeg quality")); | ||
quality_box->addWidget(quality = new QSpinBox); | ||
quality->setRange(75, 100); | ||
|
||
|
||
content->addSpacing(20); | ||
content->addWidget(new QLabel("Directory:")); | ||
|
||
QHBoxLayout *dir = new QHBoxLayout; | ||
content->addLayout(dir); | ||
dir->addWidget(new QLineEdit()); | ||
dir->addWidget(new QPushButton("...")); | ||
|
||
QHBoxLayout *buttons = new QHBoxLayout; | ||
content->addLayout(buttons); | ||
buttons->addStretch(); | ||
buttons->addWidget(new QPushButton("Create")); | ||
buttons->addWidget(new QPushButton("Cancel")); | ||
} | ||
|
||
LegacyExportDialog::LegacyExportDialog(QWidget *parent): QDialog(parent) { | ||
setWindowTitle("Export legacy RTI"); | ||
setMinimumWidth(400); | ||
|
||
QVBoxLayout *content = new QVBoxLayout(this); | ||
|
||
content->addWidget(new QRadioButton("Uncompressed")); | ||
content->addWidget(new QRadioButton("JPEG")); | ||
|
||
QHBoxLayout *quality_box = new QHBoxLayout; | ||
content->addLayout(quality_box); | ||
quality_box->addWidget(new QLabel("Jpeg quality")); | ||
quality_box->addWidget(quality = new QSpinBox); | ||
quality->setRange(75, 100); | ||
|
||
QHBoxLayout *filename = new QHBoxLayout; | ||
content->addLayout(filename); | ||
filename->addWidget(new QLineEdit()); | ||
filename->addWidget(new QPushButton("...")); | ||
|
||
QHBoxLayout *buttons = new QHBoxLayout; | ||
content->addLayout(buttons); | ||
buttons->addStretch(); | ||
buttons->addWidget(new QPushButton("Create")); | ||
buttons->addWidget(new QPushButton("Cancel")); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef RTIEXPORTDIALOG_H | ||
#define RTIEXPORTDIALOG_H | ||
|
||
#include <QDialog> | ||
|
||
class QSpinBox; | ||
|
||
class RtiExportDialog: public QDialog { | ||
public: | ||
RtiExportDialog(QWidget *parent = nullptr); | ||
QSpinBox *quality = nullptr; | ||
}; | ||
|
||
class LegacyExportDialog: public QDialog { | ||
public: | ||
LegacyExportDialog(QWidget *parent = nullptr); | ||
QSpinBox *quality = nullptr; | ||
}; | ||
|
||
#endif // RTIEXPORTDIALOG_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters