Commit 9c18a96d authored by allens's avatar allens
Browse files

added a collapsable panel to the GUI

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23833 18c085ea-50e0-402c-830e-de6fd14e8384
parent fbfe03de
...@@ -58,6 +58,8 @@ ...@@ -58,6 +58,8 @@
#include <QvisLineWidthWidget.h> #include <QvisLineWidthWidget.h>
#include <QvisVariableButton.h> #include <QvisVariableButton.h>
#include "QvisCollapsiblePanel.h"
// **************************************************************************** // ****************************************************************************
// Method: QvisPseudocolorPlotWindow::QvisPseudocolorPlotWindow // Method: QvisPseudocolorPlotWindow::QvisPseudocolorPlotWindow
// //
...@@ -190,23 +192,47 @@ QvisPseudocolorPlotWindow::~QvisPseudocolorPlotWindow() ...@@ -190,23 +192,47 @@ QvisPseudocolorPlotWindow::~QvisPseudocolorPlotWindow()
void void
QvisPseudocolorPlotWindow::CreateWindowContents() QvisPseudocolorPlotWindow::CreateWindowContents()
{ {
QTabWidget *propertyTabs = new QTabWidget(central); propertyStack = new QvisCollapsibleStack(central);
topLayout->addWidget(propertyTabs); propertyStack->setParent( this );
topLayout->addWidget(propertyStack);
// ---------------------------------------------------------------------- // // ----------------------------------------------------------------------
// Data tab // // Data tab
// ---------------------------------------------------------------------- // // ----------------------------------------------------------------------
QWidget *dataTab = new QWidget(central); QWidget *dataTab = new QWidget(central);
propertyTabs->addTab(dataTab, tr("Data"));
CreateDataTab(dataTab); CreateDataTab(dataTab);
// ---------------------------------------------------------------------- QvisCollapsiblePanel* dataFrame =
// Geometry tab propertyStack->addPanel( tr("Data"), dataTab);
// ----------------------------------------------------------------------
// // ----------------------------------------------------------------------
// // Geometry tab
// // ----------------------------------------------------------------------
QWidget *geometryTab = new QWidget(central); QWidget *geometryTab = new QWidget(central);
propertyTabs->addTab(geometryTab, tr("Geometry"));
CreateGeometryTab(geometryTab); CreateGeometryTab(geometryTab);
QvisCollapsiblePanel* geometryFrame =
propertyStack->addPanel( tr("Geometry"), geometryTab);
geometryFrame->collapse();
// QTabWidget *propertyTabs = new QTabWidget(central);
// topLayout->addWidget(propertyTabs);
// // ----------------------------------------------------------------------
// // Data tab
// // ----------------------------------------------------------------------
// QWidget *dataTab = new QWidget(central);
// propertyTabs->addTab(dataTab, tr("Data"));
// CreateDataTab(dataTab);
// // ----------------------------------------------------------------------
// // Geometry tab
// // ----------------------------------------------------------------------
// QWidget *geometryTab = new QWidget(central);
// propertyTabs->addTab(geometryTab, tr("Geometry"));
// CreateGeometryTab(geometryTab);
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// Extras tab // Extras tab
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
......
...@@ -57,6 +57,8 @@ class QSpinBox; ...@@ -57,6 +57,8 @@ class QSpinBox;
class Subject; class Subject;
class PseudocolorAttributes; class PseudocolorAttributes;
class QvisCollapsibleStack;
// **************************************************************************** // ****************************************************************************
// Class: QvisPseudocolorPlotWindow // Class: QvisPseudocolorPlotWindow
// //
...@@ -198,6 +200,8 @@ private: ...@@ -198,6 +200,8 @@ private:
int plotType; int plotType;
PseudocolorAttributes *pcAtts; PseudocolorAttributes *pcAtts;
QvisCollapsibleStack *propertyStack;
QButtonGroup *scalingButtons; QButtonGroup *scalingButtons;
QLineEdit *skewLineEdit; QLineEdit *skewLineEdit;
...@@ -267,5 +271,4 @@ private: ...@@ -267,5 +271,4 @@ private:
QCheckBox *legendToggle; QCheckBox *legendToggle;
QCheckBox *lightingToggle; QCheckBox *lightingToggle;
}; };
#endif #endif
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