1 /*****************************************************************************
2  *                                                                           *
3  *  Elmer, A Finite Element Software for Multiphysical Problems              *
4  *                                                                           *
5  *  Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland    *
6  *                                                                           *
7  *  This program is free software; you can redistribute it and/or            *
8  *  modify it under the terms of the GNU General Public License              *
9  *  as published by the Free Software Foundation; either version 2           *
10  *  of the License, or (at your option) any later version.                   *
11  *                                                                           *
12  *  This program is distributed in the hope that it will be useful,          *
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of           *
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            *
15  *  GNU General Public License for more details.                             *
16  *                                                                           *
17  *  You should have received a copy of the GNU General Public License        *
18  *  along with this program (in file fem/GPL-2); if not, write to the        *
19  *  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,         *
20  *  Boston, MA 02110-1301, USA.                                              *
21  *                                                                           *
22  *****************************************************************************/
23 
24 /*****************************************************************************
25  *                                                                           *
26  *  ElmerGUI text                                                            *
27  *                                                                           *
28  *****************************************************************************
29  *                                                                           *
30  *  Authors: Mikko Lyly, Juha Ruokolainen and Peter Råback                   *
31  *  Email:   Juha.Ruokolainen@csc.fi                                         *
32  *  Web:     http://www.csc.fi/elmer                                         *
33  *  Address: CSC - IT Center for Science Ltd.                                 *
34  *           Keilaranta 14                                                   *
35  *           02101 Espoo, Finland                                            *
36  *                                                                           *
37  *  Original Date: 15 Mar 2008                                               *
38  *                                                                           *
39  *****************************************************************************/
40 
41 #ifndef TEXT_H
42 #define TEXT_H
43 
44 #include <QWidget>
45 #include "ui_text.h"
46 
47 class VtkPost;
48 
49 class Text : public QDialog
50 {
51   Q_OBJECT
52 
53 public:
54   Text(QWidget *parent = 0);
55   ~Text();
56 
57   Ui::textDialog ui;
58 
59   void draw(VtkPost*);
60 
61 public slots:
62   void SetMessage(QString);
63   void SetPosX(int);
64   void SetPosY(int);
65   void SetLeft();
66   void SetCentered();
67   void SetRight();
68   void SetSize(int);
69   void SetBold(bool);
70   void SetItalic(bool);
71   void SetShadow(bool);
72   void SetRed(double);
73   void SetGreen(double);
74   void SetBlue(double);
75   void SetRGB(double, double, double);
76 
77 signals:
78   void drawTextSignal();
79   void hideTextSignal();
80 
81 private slots:
82   void applyButtonClicked();
83   void cancelButtonClicked();
84   void okButtonClicked();
85 
86 private:
87   double red;
88   double green;
89   double blue;
90 
91 };
92 
93 #endif // TEXT_H
94