Commit 53b073f4 authored by Jan Möbius's avatar Jan Möbius

layouts and filepts

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12716 383ad7c9-94d9-4d36-a494-682f7c89f535
parent caafe9b8
This diff is collapsed.
......@@ -98,12 +98,8 @@ signals:
private slots:
// -- Base Interface --
void noguiSupported() { }
// slots called when user wants to save the given Load/Save Options as default
void slotLoadMakeDefaultButtonClicked();
void slotSaveMakeDefaultButtonClicked();
// -- Base Interface --
void noguiSupported() { }
public:
......@@ -115,8 +111,8 @@ public:
QString name() { return QString( "FilePTS" ); }
QString description( ) { return QString( tr( "Load/Save SplatCloud format files" ) ); }
// -- File Interface --
DataType supportedType() { return DATA_SPLATCLOUD; }
// -- File Interface --
DataType supportedType() { return DATA_SPLATCLOUD; }
// -- File Interface --
QString getSaveFilters() { return QString( tr( "SplatCloud format files ( *.pts *.bin )" ) ); }
......@@ -154,6 +150,7 @@ private:
QCheckBox* loadBinaryFile_;
QCheckBox* loadNormals_;
QCheckBox* loadPointsizes_;
QCheckBox* loadColors_;
QComboBox* loadColorRange_;
QCheckBox* loadNormalizeSize_;
......@@ -161,11 +158,22 @@ private:
QCheckBox* saveBinaryFile_;
QCheckBox* saveNormals_;
QCheckBox* savePointsizes_;
QCheckBox* saveColors_;
QComboBox* saveColorRange_;
// buttons
QPushButton* loadMakeDefaultButton_;
QPushButton* saveMakeDefaultButton_;
private slots:
// slots called when the Load/Save colors checkbox or binaryfile checkbox was clicked
void slotUpdateLoadColorRange();
void slotUpdateSaveColorRange();
// slots called when user wants to save the given Load/Save Options as default
void slotLoadMakeDefaultButtonClicked();
void slotSaveMakeDefaultButtonClicked();
};
......
......@@ -116,9 +116,11 @@ void SplatCloudRenderingControlPlugin::initializePlugin()
// options layout
QVBoxLayout *toolboxOptionsLayout = new QVBoxLayout();
toolboxOptionsLayout->setAlignment( Qt::AlignTop );
toolboxOptionsLayout->setSpacing( 6 );
toolboxOptionsLayout->addItem ( toolboxPointsizeScaleLayout );
toolboxOptionsLayout->addItem ( toolboxButtonsALayout );
toolboxOptionsLayout->addItem ( new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Expanding ) );
toolboxOptionsLayout->addWidget( toolboxSeparatorFrame );
toolboxOptionsLayout->addItem ( toolboxButtonsBLayout );
......@@ -209,6 +211,7 @@ void SplatCloudRenderingControlPlugin::initializePlugin()
// defaults layout
QVBoxLayout *toolboxDefaultsLayout = new QVBoxLayout();
toolboxDefaultsLayout->setAlignment( Qt::AlignTop );
toolboxDefaultsLayout->setSpacing( 6 );
toolboxDefaultsLayout->addItem ( toolboxDefaultOptionsLayout );
toolboxDefaultsLayout->addWidget( toolboxApplyDefaultsButton );
......@@ -303,6 +306,7 @@ void SplatCloudRenderingControlPlugin::initializePlugin()
// widget layout
QVBoxLayout *scaleWidgetLayout = new QVBoxLayout();
scaleWidgetLayout->setAlignment( Qt::AlignTop );
scaleWidgetLayout->setSpacing( 6 );
scaleWidgetLayout->addItem( scaleWidgetPointsizeScaleLayout );
......@@ -401,6 +405,7 @@ void SplatCloudRenderingControlPlugin::initializePlugin()
// widget layout
QVBoxLayout *defaultsWidgetLayout = new QVBoxLayout();
defaultsWidgetLayout->setAlignment( Qt::AlignTop );
defaultsWidgetLayout->setSpacing( 6 );
defaultsWidgetLayout->addItem( defaultsWidgetDefaultOptionsLayout );
defaultsWidgetLayout->addItem( defaultsWidgetButtonsLayout );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment