lib
KoGuideLineDia Class Reference
#include <KoGuideLineDia.h>
Inheritance diagram for KoGuideLineDia:

Detailed Description
Class for setting a guide line position.
Definition at line 37 of file KoGuideLineDia.h.
Public Member Functions | |
KoGuideLineDia (QWidget *parent, double pos, double minPos, double maxPos, KoUnit::Unit unit, const char *name=0L) | |
KoGuideLineDia (QWidget *parent, KoPoint &pos, KoRect &rect, KoUnit::Unit unit, const char *name=0L) | |
double | pos () const |
Qt::Orientation | orientation () const |
Protected Slots | |
void | slotOrientationChanged () |
void | slotPositionChanged () |
Protected Attributes | |
KoRect | m_rect |
KoPoint | m_pos |
bool | m_positionChanged |
QRadioButton * | m_hButton |
QRadioButton * | m_vButton |
KoUnitDoubleSpinBox * | m_position |
Constructor & Destructor Documentation
KoGuideLineDia::KoGuideLineDia | ( | QWidget * | parent, | |
double | pos, | |||
double | minPos, | |||
double | maxPos, | |||
KoUnit::Unit | unit, | |||
const char * | name = 0L | |||
) |
Constructor.
- Parameters:
-
parent The parent widget pos the actual position of the guide line minPos the minimal position of the guide line maxPos the maximal position of the guide line unit The unit used in the document name The name is send to the QObject constructor
Definition at line 35 of file KoGuideLineDia.cpp.
KoGuideLineDia::KoGuideLineDia | ( | QWidget * | parent, | |
KoPoint & | pos, | |||
KoRect & | rect, | |||
KoUnit::Unit | unit, | |||
const char * | name = 0L | |||
) |
Constructor.
This shows a dialog to add a guide line. As long the position is not changed and the orientation of the guide line is changed the value will be set to pos.x() or pos.y() according to the orientation.
- Parameters:
-
parent the parent widget pos the actual position of cursor rect the rect in where the guide can be placed unit the unit used in the document name the name is send to the QObject constructor
Definition at line 49 of file KoGuideLineDia.cpp.
Member Function Documentation
Qt::Orientation KoGuideLineDia::orientation | ( | ) | const |
the orientation
- Returns:
- the orientation of the added guide line
Definition at line 87 of file KoGuideLineDia.cpp.
double KoGuideLineDia::pos | ( | ) | const |
the position
- Returns:
- the value of the position input
Definition at line 81 of file KoGuideLineDia.cpp.
The documentation for this class was generated from the following files: