All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
#include <GridProperties.h>
Public Types | |
enum | Properties { ShowGrid, Smooth, FillValue, FillValueInversed, FillType } |
Public Member Functions | |
GridProperties (QWidget *parent=0) | |
Static Public Member Functions | |
static int | area2item (Rect::Area ft) |
static Rect::Area | item2area (int index) |
SciFigs::GridProperties::GridProperties | ( | QWidget * | parent = 0 | ) |
References QGpGuiTools::PropertyWidget::addProperty(), FillType, FillValue, FillValueInversed, ShowGrid, Smooth, and TRACE.
: PropertyWidget(parent) { TRACE; setupUi(this); // Create properties addProperty(ShowGrid, showGrid); addProperty(Smooth, smooth); addProperty(FillValue, valueEdit, valueLabel); addProperty(FillValueInversed, valueInversedEdit, valueInversedLabel); addProperty(FillType, fillTypeEdit); }
int SciFigs::GridProperties::area2item | ( | Rect::Area | ft | ) | [static] |
Referenced by SciFigs::GridPlot::properties().
{ switch (ft) { case Rect::AboveAscDiag: return 1; case Rect::BelowAscDiag: return 2; case Rect::AboveDescDiag: return 3; case Rect::BelowDescDiag: return 4; default: return 0; } }
Rect::Area SciFigs::GridProperties::item2area | ( | int | index | ) | [static] |
Referenced by SciFigs::GridPlot::setProperty().
{ switch (index) { case 1: return Rect::AboveAscDiag; case 2: return Rect::BelowAscDiag; case 3: return Rect::AboveDescDiag; case 4: return Rect::BelowDescDiag; default: return Rect::AllRect; } }