ODIN
enumbox.h
1 /***************************************************************************
2  enumbox.h - description
3  -------------------
4  begin : Tue May 29 2001
5  copyright : (C) 2000-2021 by Thies Jochimsen
6  email : thies@jochimsen.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 ENUMBOX_H
19 #define ENUMBOX_H
20 
21 #include <qgroupbox.h>
22 
23 #include "odinqt.h"
24 
28 class enumBox : public QGroupBox {
29  Q_OBJECT
30 
31 public:
32  enumBox(const svector& items,QWidget *parent,const char *name,bool editButton=false,bool infoButton=false);
33  ~enumBox();
34 
35 public slots:
36  void setValue( int val );
37 
38 signals:
39  void newVal( int val );
40  void edit();
41  void info();
42 
43 
44 private slots:
45  void emitNewVal(int val);
46  void reportEditClicked();
47  void reportInfoClicked();
48 
49  private:
50  int old_val;
51  GuiComboBox* cb;
52  GuiButton* pb_edit;
53  GuiButton* pb_info;
54  GuiGridLayout* grid;
55 };
56 
57 
58 #endif