Developer documentation | Axl-2.5.1

axlInspectorUtils.h File Reference
#include "axlGuiExport.h"
#include <QtCore>

Go to the source code of this file.

Macros

#define AXL_PROPERTY_COLOR   0
 
#define AXL_PROPERTY_OPACITY   1
 
#define AXL_PROPERTY_SHADER   2
 
#define AXL_PROPERTY_SIZE   3
 
#define addColorButton(layoutTop, colorButton, slot, init)
 
#define addSizeSlider(layoutTop, sliderSize, slot, init)
 
#define addOpacitySlider(layoutTop, sliderOpacity, slot, init)
 
#define addShaderComboBox(layoutTop, comboBoxShader, checkBoxShader, lineEditShader, buttonShader, onComboBoxChanged, onCheckBoxChanged, onTextChanged, openShader, init)
 
#define addPointLayout(layoutTop, name, title, coordinatePoint, slot, init)
 
#define addValueLayout(layoutTop, name, title, data, slot, init)
 

Functions

bool AXLGUI_EXPORT caseInsensitiveLessThan (const QString &s1, const QString &s2)
 

Macro Definition Documentation

#define addColorButton (   layoutTop,
  colorButton,
  slot,
  init 
)
Value:
colorButton = new dtkColorButton(this);\
QHBoxLayout *layoutColorButton = new QHBoxLayout;\
layoutColorButton->addWidget(new QLabel("Color",this));\
layoutColorButton->addWidget(colorButton);\
colorButton->setColor(this->initColorValue());\
layoutTop->addLayout(layoutColorButton);\
connect(colorButton, SIGNAL(colorChanged(QColor)), this, SLOT(slot (QColor)));

Definition at line 34 of file axlInspectorUtils.h.

#define addOpacitySlider (   layoutTop,
  sliderOpacity,
  slot,
  init 
)
Value:
sliderOpacity = new QSlider(Qt::Horizontal, this);\
sliderOpacity->setMaximum(100);\
sliderOpacity->setValue(init);\
QHBoxLayout *layoutOpacity = new QHBoxLayout;\
layoutOpacity->addWidget(new QLabel("Opacity", this));\
layoutOpacity->addWidget(sliderOpacity);\
layoutTop->addLayout(layoutOpacity);\
connect(sliderOpacity, SIGNAL(valueChanged(int)), this, SLOT(slot (int)));

Definition at line 58 of file axlInspectorUtils.h.

#define addPointLayout (   layoutTop,
  name,
  title,
  coordinatePoint,
  slot,
  init 
)

Definition at line 113 of file axlInspectorUtils.h.

#define addShaderComboBox (   layoutTop,
  comboBoxShader,
  checkBoxShader,
  lineEditShader,
  buttonShader,
  onComboBoxChanged,
  onCheckBoxChanged,
  onTextChanged,
  openShader,
  init 
)

Definition at line 70 of file axlInspectorUtils.h.

#define addSizeSlider (   layoutTop,
  sliderSize,
  slot,
  init 
)
Value:
sliderSize = new QSlider(Qt::Horizontal, this);\
QHBoxLayout *layoutSize = new QHBoxLayout;\
layoutSize->addWidget(new QLabel("Size",this));\
layoutSize->addWidget(sliderSize);\
sliderSize->setMinimum(-800);\
sliderSize->setMaximum(500);\
sliderSize->setValue(init);\
layoutTop->addLayout(layoutSize);\
connect(sliderSize, SIGNAL(valueChanged(int)), this, SLOT(slot (int)));

Definition at line 45 of file axlInspectorUtils.h.

#define addValueLayout (   layoutTop,
  name,
  title,
  data,
  slot,
  init 
)
Value:
\
data = new QDoubleSpinBox(this);\
data->setValue(init);\
data->setSingleStep(0.1);\
\
QHBoxLayout* name##Layout = new QHBoxLayout;\
name##Layout->addWidget(new QLabel(title,this));\
name##Layout->addWidget(data);\
data->setValue(init);\
layoutTop->addLayout(name##Layout);\
connect(data, SIGNAL(valueChanged(double)), this, SLOT(slot (double)));

Definition at line 153 of file axlInspectorUtils.h.

#define AXL_PROPERTY_COLOR   0

Definition at line 26 of file axlInspectorUtils.h.

#define AXL_PROPERTY_OPACITY   1

Definition at line 27 of file axlInspectorUtils.h.

#define AXL_PROPERTY_SHADER   2

Definition at line 28 of file axlInspectorUtils.h.

#define AXL_PROPERTY_SIZE   3

Definition at line 29 of file axlInspectorUtils.h.

Function Documentation

bool AXLGUI_EXPORT caseInsensitiveLessThan ( const QString &  s1,
const QString &  s2 
)

Definition at line 23 of file axlInspectorUtils.cpp.