Commit 9c18a96d authored by allens's avatar allens

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 @@
#include <QvisLineWidthWidget.h>
#include <QvisVariableButton.h>
#include "QvisCollapsiblePanel.h"
// ****************************************************************************
// Method: QvisPseudocolorPlotWindow::QvisPseudocolorPlotWindow
//
......@@ -190,23 +192,47 @@ QvisPseudocolorPlotWindow::~QvisPseudocolorPlotWindow()
void
QvisPseudocolorPlotWindow::CreateWindowContents()
{
QTabWidget *propertyTabs = new QTabWidget(central);
topLayout->addWidget(propertyTabs);
propertyStack = new QvisCollapsibleStack(central);
propertyStack->setParent( this );
topLayout->addWidget(propertyStack);
// ----------------------------------------------------------------------
// Data tab
// ----------------------------------------------------------------------
// // ----------------------------------------------------------------------
// // Data tab
// // ----------------------------------------------------------------------
QWidget *dataTab = new QWidget(central);
propertyTabs->addTab(dataTab, tr("Data"));
CreateDataTab(dataTab);
// ----------------------------------------------------------------------
// Geometry tab
// ----------------------------------------------------------------------
QvisCollapsiblePanel* dataFrame =
propertyStack->addPanel( tr("Data"), dataTab);
// // ----------------------------------------------------------------------
// // Geometry tab
// // ----------------------------------------------------------------------
QWidget *geometryTab = new QWidget(central);
propertyTabs->addTab(geometryTab, tr("Geometry"));
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
// ----------------------------------------------------------------------
......
......@@ -57,6 +57,8 @@ class QSpinBox;
class Subject;
class PseudocolorAttributes;
class QvisCollapsibleStack;
// ****************************************************************************
// Class: QvisPseudocolorPlotWindow
//
......@@ -198,6 +200,8 @@ private:
int plotType;
PseudocolorAttributes *pcAtts;
QvisCollapsibleStack *propertyStack;
QButtonGroup *scalingButtons;
QLineEdit *skewLineEdit;
......@@ -267,5 +271,4 @@ private:
QCheckBox *legendToggle;
QCheckBox *lightingToggle;
};
#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