karbon

vtranslate.h
1/* This file is part of the KDE project
2 Made by Tomislav Lukman (tomislav.lukman@ck.tel.hr)
3 Copyright (C) 2002, The Karbon Developers
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef __VTRANSLATE_H__
22#define __VTRANSLATE_H__
23
24#include <tqwidget.h>
25
26class TQCheckBox;
27class TQLabel;
28class TQPushButton;
29class TQString;
30class KDoubleNumInput;
31
32class VTranslate : public TQWidget
33{
34 TQ_OBJECT
35
36
37public:
38 VTranslate( TQWidget* parent = 0L, const char* name = 0L );
39 ~VTranslate();
40
41public slots:
42 //sets the unit labels do display correct text (mm, cm, pixels etc):
43 void setUnits( const TQString& units );
44
45private:
46 TQLabel* m_labelX;
47 KDoubleNumInput* m_inputX; //X coordinate
48 TQLabel* labely;
49 KDoubleNumInput* m_inputY; //Y coordinate
50 TQLabel* m_labelUnit1;
51 TQLabel* m_labelUnit2;
52 TQCheckBox* m_checkBoxPosition; //If checked, displays coordinates of selected object
53 TQPushButton* m_buttonDuplicate; //duplicate (makes a copy of selected object(s) with a new position)
54 TQPushButton* m_buttonApply; //apply new position
55};
56
57#endif
58