OpenCPN Partial API docs
Loading...
Searching...
No Matches
conn_params_panel.h
1/***************************************************************************
2 *
3 * Project: OpenCPN
4 *
5 ***************************************************************************
6 * Copyright (C) 2013 by David S. Register *
7 * *
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This program is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU General Public License *
19 * along with this program; if not, write to the *
20 * Free Software Foundation, Inc., *
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
22 **************************************************************************/
23
24#ifndef __DSPORTTYPE_H__
25#include <dsPortType.h>
26#endif
27
28#ifndef __CONN_PARAMS_PANEL_H__
29#define __CONN_PARAMS_PANEL_H__
30
31#include <wx/wxprec.h>
32
33#ifndef WX_PRECOMP
34#include <wx/wx.h>
35#endif // precompiled headers
36
37#include "conn_params.h"
38
39class options;
40
41class ConnectionParamsPanel : public wxPanel {
42public:
43 ConnectionParamsPanel(wxWindow *parent, wxWindowID id, const wxPoint &pos,
44 const wxSize &size,
45 ConnectionParams *p_itemConnectionParams,
46 ConnectionsDialog *pContainer);
48
49 void OnSelected(wxMouseEvent &event);
50 void SetSelected(bool selected);
51 void OnPaint(wxPaintEvent &event);
52 void OnEraseBackground(wxEraseEvent &event);
53 void CreateControls(void);
54 void OnEnableCBClick(wxCommandEvent &event);
56 void SetEnableCheckbox(bool value){ m_cbEnable->SetValue(value); }
57
58 bool GetSelected() { return m_bSelected; }
59 int GetUnselectedHeight() { return m_unselectedHeight; }
60 ConnectionParams *m_pConnectionParams;
61
62private:
63 ConnectionsDialog *m_pContainer;
64 bool m_bSelected;
65 wxStaticText *m_pName;
66 wxColour m_boxColour;
67 int m_unselectedHeight;
68 wxCheckBox *m_cbEnable;
69 wxStaticText *t2;
70 wxStaticText *t4;
71 wxStaticText *t6;
72 wxStaticText *t12;
73 wxStaticText *t14;
74 wxStaticText *t16;
75 wxStaticText *t18;
76
77 wxStaticText *t21;
78
79 DECLARE_EVENT_TABLE()
80};
81
82
83#endif // __CONN_PARAMS_PANEL_H__