karbon
vtranslate.h
00001 /* This file is part of the KDE project 00002 Made by Tomislav Lukman (tomislav.lukman@ck.tel.hr) 00003 Copyright (C) 2002, The Karbon Developers 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef __VTRANSLATE_H__ 00022 #define __VTRANSLATE_H__ 00023 00024 #include <qwidget.h> 00025 00026 class QCheckBox; 00027 class QLabel; 00028 class QPushButton; 00029 class QString; 00030 class KDoubleNumInput; 00031 00032 class VTranslate : public QWidget 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 VTranslate( QWidget* parent = 0L, const char* name = 0L ); 00038 ~VTranslate(); 00039 00040 public slots: 00041 //sets the unit labels do display correct text (mm, cm, pixels etc): 00042 void setUnits( const QString& units ); 00043 00044 private: 00045 QLabel* m_labelX; 00046 KDoubleNumInput* m_inputX; //X coordinate 00047 QLabel* labely; 00048 KDoubleNumInput* m_inputY; //Y coordinate 00049 QLabel* m_labelUnit1; 00050 QLabel* m_labelUnit2; 00051 QCheckBox* m_checkBoxPosition; //If checked, displays coordinates of selected object 00052 QPushButton* m_buttonDuplicate; //duplicate (makes a copy of selected object(s) with a new position) 00053 QPushButton* m_buttonApply; //apply new position 00054 }; 00055 00056 #endif 00057