2025-04-02 10:36:48 +08:00
|
|
|
#ifndef BASEMAIN_H
|
|
|
|
#define BASEMAIN_H
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
2025-04-03 17:19:39 +08:00
|
|
|
#include "../modeDirCtrl.h"
|
2025-04-03 16:49:08 +08:00
|
|
|
|
|
|
|
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_{};
|
2025-04-03 17:19:39 +08:00
|
|
|
CModeDirCtrl* dirctrl_{};
|
2025-04-03 16:49:08 +08:00
|
|
|
wxRadioButton* rbtLocal_{};
|
|
|
|
wxRadioButton* rbtRemote_{};
|
|
|
|
wxStaticText* lbState_{};
|
2025-04-02 10:36:48 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BASEMAIN_H
|