Crossfire Server, Trunk
CREHPBarMaker.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef CREHPBARMAKER_H
14 #define CREHPBARMAKER_H
15 
16 #include <QDialog>
17 #include <QObject>
18 
19 class QLineEdit;
20 class QSpinBox;
21 
22 class CREHPBarMaker : public QDialog
23 {
24  Q_OBJECT
25 
26  public:
27  CREHPBarMaker();
28  virtual ~CREHPBarMaker();
29 
30  protected:
31  void adjustColor();
32 
33  protected slots:
34  void makeBar();
35  void browse(bool);
36  void selectColor(bool);
37 
38  private:
39  QLineEdit* myDestination;
40  QLineEdit* myName;
41  QSpinBox* myHeight;
42  QSpinBox* myShift;
43  QColor myColor;
44  QPushButton *myColorSelect;
45 };
46 
47 #endif /* CREHPBARMAKER_H */
CREHPBarMaker::makeBar
void makeBar()
Definition: CREHPBarMaker.cpp:69
CREHPBarMaker::myColor
QColor myColor
Definition: CREHPBarMaker.h:43
CREHPBarMaker::adjustColor
void adjustColor()
Definition: CREHPBarMaker.cpp:135
CREHPBarMaker::browse
void browse(bool)
Definition: CREHPBarMaker.cpp:126
CREHPBarMaker
Definition: CREHPBarMaker.h:22
CREHPBarMaker::myColorSelect
QPushButton * myColorSelect
Definition: CREHPBarMaker.h:44
CREHPBarMaker::myShift
QSpinBox * myShift
Definition: CREHPBarMaker.h:42
CREHPBarMaker::myName
QLineEdit * myName
Definition: CREHPBarMaker.h:40
CREHPBarMaker::CREHPBarMaker
CREHPBarMaker()
Definition: CREHPBarMaker.cpp:21
CREHPBarMaker::selectColor
void selectColor(bool)
Definition: CREHPBarMaker.cpp:141
CREHPBarMaker::myDestination
QLineEdit * myDestination
Definition: CREHPBarMaker.h:39
CREHPBarMaker::~CREHPBarMaker
virtual ~CREHPBarMaker()
Definition: CREHPBarMaker.cpp:65
CREHPBarMaker::myHeight
QSpinBox * myHeight
Definition: CREHPBarMaker.h:41