You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebase/khotkeys/kcontrol/gesturedrawer.h

51 lines
1.1 KiB

/****************************************************************************
KHotKeys
Copyright (C) 2003 Mike Pilone <mpilone@slac.com>
Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
Distributed under the terms of the GNU General Public License version 2.
****************************************************************************/
#ifndef GESTURE_DRAWER_H
#define GESTURE_DRAWER_H
#include <tqframe.h>
#include <tqstring.h>
#include <tqevent.h>
#include <tqpoint.h>
#include <tqwidget.h>
#include <tqsize.h>
namespace KHotKeys
{
class GestureDrawer : public TQFrame
{
Q_OBJECT
public:
GestureDrawer(TQWidget *parent, const char *name);
~GestureDrawer();
void setData(const TQString &data);
virtual TQSize tqsizeHint() const { return TQSize(30, 30); }
protected:
void paintEvent(TQPaintEvent *ev);
private:
TQPoint lookupCellCoords(TQ_UINT32 cell);
void drawArrowHead(TQPoint &start, TQPoint &end,
TQPainter &p);
TQString _data;
};
} // namespace KHotKeys
#endif