mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-05 15:54:50 -04:00
Initial source commit
Initial source commit
This commit is contained in:
56
Source/Fractorium/OptionsDialog.h
Normal file
56
Source/Fractorium/OptionsDialog.h
Normal file
@ -0,0 +1,56 @@
|
||||
#pragma once
|
||||
|
||||
#include "ui_OptionsDialog.h"
|
||||
#include "FractoriumSettings.h"
|
||||
#include "SpinBox.h"
|
||||
|
||||
/// <summary>
|
||||
/// FractoriumOptionsDialog class.
|
||||
/// </summary>
|
||||
|
||||
class Fractorium;//Forward declaration since Fractorium uses this dialog.
|
||||
|
||||
/// <summary>
|
||||
/// The options dialog allows the user to save various preferences
|
||||
/// between program runs.
|
||||
/// It has a pointer to a FractoriumSettings object which is assigned
|
||||
/// in the constructor. The main window holds the object as a member and the
|
||||
/// pointer to it here is just for convenience.
|
||||
/// </summary>
|
||||
class FractoriumOptionsDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
friend Fractorium;
|
||||
|
||||
public:
|
||||
FractoriumOptionsDialog(FractoriumSettings* settings, QWidget* parent = 0, Qt::WindowFlags f = 0);
|
||||
|
||||
public slots:
|
||||
void OnOpenCLCheckBoxStateChanged(int state);
|
||||
void OnPlatformComboCurrentIndexChanged(int index);
|
||||
virtual void accept();
|
||||
virtual void reject();
|
||||
|
||||
private:
|
||||
bool EarlyClip();
|
||||
bool AlphaChannel();
|
||||
bool Transparency();
|
||||
bool OpenCL();
|
||||
bool Double();
|
||||
unsigned int PlatformIndex();
|
||||
unsigned int DeviceIndex();
|
||||
unsigned int ThreadCount();
|
||||
|
||||
Ui::OptionsDialog ui;
|
||||
OpenCLWrapper m_Wrapper;
|
||||
SpinBox* m_XmlWidthSpin;
|
||||
SpinBox* m_XmlHeightSpin;
|
||||
SpinBox* m_XmlTemporalSamplesSpin;
|
||||
SpinBox* m_XmlQualitySpin;
|
||||
SpinBox* m_XmlSupersampleSpin;
|
||||
QLineEdit* m_IdEdit;
|
||||
QLineEdit* m_UrlEdit;
|
||||
QLineEdit* m_NickEdit;
|
||||
FractoriumSettings* m_Settings;
|
||||
};
|
Reference in New Issue
Block a user