28#include "cursoredit.h"
37CursorEdit::CursorEdit( Property *property, TQWidget *parent, const char *name)
38: ComboBox(property, parent, name)
62 if (!m_cursorListData) {
63 TQValueList<TQVariant> keys;
73 << TQt::SizeBDiagCursor
74 << TQt::SizeFDiagCursor
78 << TQt::PointingHandCursor
79 << TQt::ForbiddenCursor
80 << TQt::WhatsThisCursor;
82 strings << i18n( "Mouse Cursor Shape", "No Cursor")
83 << i18n( "Mouse Cursor Shape", "Arrow")
84 << i18n( "Mouse Cursor Shape", "Up Arrow")
85 << i18n( "Mouse Cursor Shape", "Cross")
86 << i18n( "Mouse Cursor Shape", "Waiting")
87 << i18n( "Mouse Cursor Shape", "I")
88 << i18n( "Mouse Cursor Shape", "Size Vertical")
89 << i18n( "Mouse Cursor Shape", "Size Horizontal")
90 << i18n( "Mouse Cursor Shape", "Size Slash")
91 << i18n( "Mouse Cursor Shape", "Size Backslash")
92 << i18n( "Mouse Cursor Shape", "Size All")
93 << i18n( "Mouse Cursor Shape", "Split Vertical")
94 << i18n( "Mouse Cursor Shape", "Split Horizontal")
95 << i18n( "Mouse Cursor Shape", "Pointing Hand")
96 << i18n( "Mouse Cursor Shape", "Forbidden")
97 << i18n( "Mouse Cursor Shape", "What's This?");
105CursorEdit::~CursorEdit()
107 delete m_cursorListData;
108 m_cursorListData = 0;
118CursorEdit::setValue( const TQVariant &value, bool emitChange)
120 ComboBox::setValue(value.toCursor().shape(), emitChange);
124CursorEdit::drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value)
126 ComboBox::drawViewer(p, cg, r, value.toCursor().shape());
130CursorEdit::setProperty( Property *prop)
133 prop-> setListData( new Property::ListData(*m_cursorListData));
134 ComboBox::setProperty(prop);
137#include "cursoredit.moc"
The base class representing a single property.
void setListData(ListData *list)
const char * name(StdAction id)
Namespace for a set of classes implementing generic properties framework.
|