mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 17:18:23 -04:00
49 lines
1.0 KiB
C++
49 lines
1.0 KiB
C++
#include "options_dialog.h"
|
|
#include <QVBoxLayout>
|
|
#include <QHBoxLayout>
|
|
#include <QFileDialog>
|
|
#include <QGroupBox>
|
|
#include <QRadioButton>
|
|
#include <QTextStream>
|
|
#include <QCoreApplication>
|
|
#include <QFile>
|
|
#include <QMessageBox>
|
|
#include <QCheckBox>
|
|
|
|
#include "custom_widgets.h"
|
|
#include "yacreader_flow_gl.h"
|
|
|
|
FlowType flowType = Strip;
|
|
|
|
OptionsDialog::OptionsDialog(QWidget * parent)
|
|
:YACReaderOptionsDialog(parent)
|
|
{
|
|
QVBoxLayout * layout = new QVBoxLayout;
|
|
|
|
QHBoxLayout * switchFlowType = new QHBoxLayout;
|
|
switchFlowType->addStretch();
|
|
switchFlowType->addWidget(useGL);
|
|
|
|
|
|
|
|
QHBoxLayout * buttons = new QHBoxLayout();
|
|
buttons->addStretch();
|
|
buttons->addWidget(accept);
|
|
buttons->addWidget(cancel);
|
|
|
|
layout->addWidget(sw);
|
|
layout->addWidget(gl);
|
|
layout->addLayout(switchFlowType);
|
|
layout->addLayout(buttons);
|
|
|
|
sw->hide();
|
|
|
|
setLayout(layout);
|
|
//restoreOptions(settings); //load options
|
|
//resize(200,0);
|
|
setModal (true);
|
|
setWindowTitle(tr("Options"));
|
|
}
|
|
|
|
|