gtransm/gui/design/basepanel.h

29 lines
609 B
C
Raw Normal View History

2025-04-02 10:36:48 +08:00
#ifndef BASEMAIN_H
#define BASEMAIN_H
#include <wx/wx.h>
2025-04-03 16:49:08 +08:00
#include <wx/dirctrl.h>
constexpr int g_BaseBorder = 3;
2025-04-02 10:36:48 +08:00
class CBasePanel : public wxPanel
{
public:
2025-04-03 10:23:46 +08:00
CBasePanel(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name);
2025-04-02 10:36:48 +08:00
private:
void Init();
2025-04-03 16:49:08 +08:00
void ManLayout();
2025-04-02 10:36:48 +08:00
2025-04-03 16:49:08 +08:00
public:
2025-04-02 10:36:48 +08:00
wxTextCtrl* edIp_{};
wxTextCtrl* edPort_{};
2025-04-03 16:49:08 +08:00
wxButton* btnConnect_{};
wxButton* btnDisconnect_{};
wxGenericDirCtrl* dirctrl_{};
wxRadioButton* rbtLocal_{};
wxRadioButton* rbtRemote_{};
wxStaticText* lbState_{};
2025-04-02 10:36:48 +08:00
};
#endif // BASEMAIN_H