1
/****************************************************************************
3
** This file is part of the LibreCAD project, a 2D CAD program
5
** Copyright (C) 2010 R. van Twisk (librecad@rvt.dds.nl)
6
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
9
** This file may be distributed and/or modified under the terms of the
10
** GNU General Public License version 2 as published by the Free Software
11
** Foundation and appearing in the file gpl-2.0.txt included in the
12
** packaging of this file.
14
** This program is distributed in the hope that it will be useful,
15
** but WITHOUT ANY WARRANTY; without even the implied warranty of
16
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
** GNU General Public License for more details.
19
** You should have received a copy of the GNU General Public License
20
** along with this program; if not, write to the Free Software
21
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
** This copyright notice MUST APPEAR in all copies of the script!
25
**********************************************************************/
29
#include "ui_qg_dlgtext.h"
32
class QG_DlgText : public QDialog, public Ui::QG_DlgText
37
QG_DlgText(QWidget* parent = 0, bool modal = false, Qt::WindowFlags fl = 0);
40
virtual int getAlignment();
43
virtual void updateUniCharComboBox( int );
44
virtual void setText( RS_Text & t, bool isNew );
45
virtual void updateText();
46
virtual void setAlignmentTL();
47
virtual void setAlignmentTC();
48
virtual void setAlignmentTR();
49
virtual void setAlignmentML();
50
virtual void setAlignmentMC();
51
virtual void setAlignmentMR();
52
virtual void setAlignmentLL();
53
virtual void setAlignmentLC();
54
virtual void setAlignmentLR();
55
virtual void setAlignmentBL();
56
virtual void setAlignmentBC();
57
virtual void setAlignmentBR();
58
virtual void setAlignmentFit();
59
virtual void setAlignmentAlign();
60
virtual void setAlignmentMiddle();
61
virtual void setAlignment( int a );
62
virtual void setFont( const QString & f );
63
// virtual void defaultChanged( bool );
64
virtual void loadText();
65
virtual void load( const QString & fn );
66
virtual void saveText();
67
virtual void save( const QString & fn );
68
virtual void insertSymbol( int );
69
virtual void updateUniCharButton( int );
70
virtual void insertChar();
71
virtual void reject();
74
virtual void languageChange();
87
#endif // QG_DLGTEXT_H