My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
qucsedit.h
Go to the documentation of this file.
1 /***************************************************************************
2  qucsedit.h
3  ------------
4  begin : Mon Nov 17 2003
5  copyright : (C) 2003 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QUCSEDIT_H
19 #define QUCSEDIT_H
20 
21 #include <qdialog.h>
22 
23 class QLabel;
24 class QTextEdit;
25 
26 
27 struct tQucsSettings {
28  int x, y, dx, dy; // position and size of main window
29  QFont font;
30  QString BitmapDir;
31  QString LangDir;
32  QString Language;
33 };
34 
36 
37 
38 class QucsEdit : public QDialog {
39  Q_OBJECT
40 public:
41  QucsEdit(const QString&, bool readOnly=false);
42  ~QucsEdit();
43 
44 private slots:
45  void slotAbout();
46  void slotLoad();
47  void slotSave();
48  void slotQuit();
49  void slotPrintCursorPosition(int, int);
50 
51 private:
52  void closeEvent(QCloseEvent*);
53  bool loadFile(const QString&);
54  bool closeFile();
55 
56  QString FileName;
57  QTextEdit *text;
58  QLabel *PosText;
59 };
60 
61 #endif