All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Types | Public Member Functions | Static Public Member Functions
SciFigs::AxisScaleProperties Class Reference

Brief description of class still missing. More...

#include <AxisScaleProperties.h>

Inheritance diagram for SciFigs::AxisScaleProperties:
QGpGuiTools::PropertyWidget

List of all members.

Public Types

enum  Properties {
  MinimumValue, MaximumValue, MajorTicks, MinorTicks,
  AutoTicks, ShowLabels, ZoomEnabled, ScaleType,
  ReversedScale, SizeType, SizeInfo
}

Public Member Functions

 AxisScaleProperties (QWidget *parent=0)
void setCurrentAxis (Axis *a)
virtual void setWidgets ()

Static Public Member Functions

static Scale::Type item2scaleType (int index)
static Axis::SizeType item2sizeType (int index)
static int scaleType2item (Scale::Type st)
static int sizeType2item (Axis::SizeType st)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Member Enumeration Documentation

Enumerator:
MinimumValue 
MaximumValue 
MajorTicks 
MinorTicks 
AutoTicks 
ShowLabels 
ZoomEnabled 
ScaleType 
ReversedScale 
SizeType 
SizeInfo 

Constructor & Destructor Documentation

Description of constructor still missing

References QGpGuiTools::PropertyWidget::addProperty(), AutoTicks, MajorTicks, MaximumValue, MinimumValue, MinorTicks, ReversedScale, scaleType, ScaleType, ShowLabels, SizeInfo, SizeType, TRACE, and ZoomEnabled.

    : PropertyWidget(parent)
{
  TRACE
  setupUi(this);

  addProperty(MinimumValue, minimumEdit, minimumLabel);
  addProperty(MaximumValue, maximumEdit, maximumLabel);
  addProperty(MajorTicks, majorTicks, majorTicksLabel);
  addProperty(MinorTicks, minorTicks, minorTicksLabel);
  addProperty(AutoTicks, autoTicks);
  addProperty(ShowLabels, showLabels);
  addProperty(ZoomEnabled, zoomEnabled);
  addProperty(ScaleType, scaleType, scaleLabel);
  addProperty(SizeType, sizeType, sizeLabel);
  addProperty(SizeInfo, sizeEdit, sizeLabel);
  addProperty(ReversedScale, reversedScale);
}

Member Function Documentation

References SciFigs::Scale::Inversed, SciFigs::Scale::Linear, SciFigs::Scale::Log, and TRACE.

Referenced by SciFigs::Axis::setProperty().

{
  TRACE;
  switch (index) {
  case 1:
    return Scale::Inversed;
  case 2:
    return Scale::Log;
  default:
    return Scale::Linear;
  }
}

References SciFigs::Axis::AxisSize, SciFigs::Axis::Scaled, SciFigs::Axis::TotalSize, and TRACE.

Referenced by SciFigs::Axis::setProperty().

{
  TRACE;
  switch (index) {
  case 1:
    return Axis::AxisSize;
  case 2:
    return Axis::Scaled;
  default:
    return Axis::TotalSize;
  }
}

References SciFigs::Scale::Inversed, SciFigs::Scale::Log, and TRACE.

Referenced by SciFigs::Axis::properties().

{
  TRACE;
  switch (st) {
  case Scale::Inversed:
    return 1;
  case Scale::Log:
    return 2;
  default:
    return 0;
  }
}

Referenced by SciFigs::Axis::addProperties().

{_currentAxis=a;}

Reimplemented from QGpGuiTools::PropertyWidget.

{
  PropertyWidget::setWidgets();
  if(sizeType->currentIndex()==2) {
    sizeEdit->setSuffix( "" );
    sizeEdit->setPrefix( "1/" );
  } else {
    sizeEdit->setSuffix( " cm" );
    sizeEdit->setPrefix( "" );
  }
}

References SciFigs::Axis::AxisSize, SciFigs::Axis::Scaled, and TRACE.

Referenced by SciFigs::Axis::properties().

{
  TRACE;
  switch (st) {
  case Axis::AxisSize:
    return 1;
  case Axis::Scaled:
    return 2;
  default:
    return 0;
  }
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines