1 /*
2  * CRRCsim - the Charles River Radio Control Club Flight Simulator Project
3  *
4  * Copyright (C) 2005, 2007, 2008 Jens Wilhelm Wulf (original author)
5  * Copyright (C) 2005, 2006, 2007, 2008 Jan Reucker
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2
9  * as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21  */
22 
23 
24 
25 #ifndef CRRC_CTRLGEN_H
26 #define CRRC_CTRLGEN_H
27 
28 #include <plib/pu.h>
29 #include <plib/puAux.h>
30 
31 #include "crrc_dialog.h"
32 #include "crrc_spin.h"
33 
34 typedef struct
35 {
36   int         id;
37   std::string sDevName;
38   int         iMaxIn;
39   int         iMaxOut;
40 } T_AudioDevInfo;
41 
42 
43 /** \brief The CtrlGeneral options dialog.
44  *
45  */
46 class CGUICtrlGeneralDialog : public CRRCDialog
47 {
48   public:
49     CGUICtrlGeneralDialog();
50     ~CGUICtrlGeneralDialog();
51 
52     void showHideButtons();
53     void updateInputMethod();
54 
55     puText*       label_inputMethod;
56     std::string   inputMethodString;
57     std::string   sDeviceName;
58 
59     puaComboBox*  combo_zoom;
60     puButton*     button_calibrate;
61     puButton*     button_mixer;
62     puButton*     button_joybuttons;
63     puButton*     button_device;
64 };
65 
66 
67 #endif // CRRC_CTRLGEN_H
68