~librecad-dev/librecad/librecad

« back to all changes in this revision

Viewing changes to librecad/src/ui/forms/qg_dlgtext.h

  • Committer: Scott Howard
  • Date: 2014-02-21 19:07:55 UTC
  • Revision ID: showard@debian.org-20140221190755-csjax9wb146hgdq4
first commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
**
 
3
** This file is part of the LibreCAD project, a 2D CAD program
 
4
**
 
5
** Copyright (C) 2010 R. van Twisk (librecad@rvt.dds.nl)
 
6
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
 
7
**
 
8
**
 
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.
 
13
**
 
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.
 
18
**
 
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
 
22
**
 
23
** This copyright notice MUST APPEAR in all copies of the script!
 
24
**
 
25
**********************************************************************/
 
26
#ifndef QG_DLGTEXT_H
 
27
#define QG_DLGTEXT_H
 
28
 
 
29
#include "ui_qg_dlgtext.h"
 
30
#include "rs_text.h"
 
31
 
 
32
class QG_DlgText : public QDialog, public Ui::QG_DlgText
 
33
{
 
34
    Q_OBJECT
 
35
 
 
36
public:
 
37
    QG_DlgText(QWidget* parent = 0, bool modal = false, Qt::WindowFlags fl = 0);
 
38
    ~QG_DlgText();
 
39
 
 
40
    virtual int getAlignment();
 
41
 
 
42
public slots:
 
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();
 
72
 
 
73
protected slots:
 
74
    virtual void languageChange();
 
75
 
 
76
private:
 
77
    bool isNew;
 
78
    bool saveSettings;
 
79
    RS_Text* text;
 
80
    RS_Font* font;
 
81
 
 
82
    void init();
 
83
    void destroy();
 
84
 
 
85
};
 
86
 
 
87
#endif // QG_DLGTEXT_H