Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
arrowdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  arrowdialog.h
3  ---------------
4  begin : Fri Nov 28 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 ARROWDIALOG_H
19 #define ARROWDIALOG_H
20 
21 #include <QDialog>
22 
23 class QLineEdit;
24 class QGridLayout;
25 class QPushButton;
26 class QComboBox;
27 class QIntValidator;
28 
29 
30 class ArrowDialog : public QDialog {
31 Q_OBJECT
32 public:
33  ArrowDialog(QWidget *parent=0, const char *name=0);
34  ~ArrowDialog();
35 
36  void SetComboBox(Qt::PenStyle);
37 
38 private slots:
39  void slotSetColor();
40  void slotSetStyle(int);
41 
42 public:
43  // TODO: I'm not sure whether declaring all this as public is really a good idea :-(
44  // data encapsulation => make this stuff private & provide getter & setter methods...
45  QLineEdit *LineWidth, *HeadWidth, *HeadLength;
46  QPushButton *ColorButt;
47  QComboBox *StyleBox, *ArrowStyleBox;
48  Qt::PenStyle LineStyle;
49 
50  QGridLayout *all;
51  QIntValidator *val100;
52 };
53 
54 #endif
QLineEdit * HeadLength
Definition: arrowdialog.h:45
QLineEdit * HeadWidth
Definition: arrowdialog.h:45
void slotSetColor()
Qt::PenStyle LineStyle
Definition: arrowdialog.h:48
void slotSetStyle(int)
QLineEdit * LineWidth
Definition: arrowdialog.h:45
QIntValidator * val100
Definition: arrowdialog.h:51
QComboBox * ArrowStyleBox
Definition: arrowdialog.h:47
QPushButton * ColorButt
Definition: arrowdialog.h:46
QComboBox * StyleBox
Definition: arrowdialog.h:47
ArrowDialog(QWidget *parent=0, const char *name=0)
Definition: arrowdialog.cpp:31
void SetComboBox(Qt::PenStyle)
QGridLayout * all
Definition: arrowdialog.h:50