This repository has been archived on 2025-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
RelayFile/UserInterface/RemoteControl.h

51 lines
995 B
C
Raw Permalink Normal View History

2025-05-08 21:13:36 +08:00
#ifndef REMOTECONTROL_H
#define REMOTECONTROL_H
2025-05-09 22:31:51 +08:00
#include "InterfaceDefine.hpp"
#include <wx/grid.h>
#include <memory>
2025-05-08 21:13:36 +08:00
2025-05-12 22:07:06 +08:00
class LogControl;
class ClientCore;
2025-05-08 21:13:36 +08:00
class RemoteControl : public wxPanel
{
public:
2025-05-12 22:07:06 +08:00
RemoteControl(wxWindow* parent, std::shared_ptr<ClientCore>& clientCore);
2025-05-08 21:13:36 +08:00
~RemoteControl() override;
2025-05-09 22:31:51 +08:00
2025-05-12 22:07:06 +08:00
public:
void setRemoteID(const wxString& id);
public:
void SetLogControl(LogControl* logControl);
2025-05-09 22:31:51 +08:00
private:
void Init();
void SetGrid();
2025-05-12 22:07:06 +08:00
void BindEvent();
private:
void AskHome(wxCommandEvent& event);
void GetDirContent(wxCommandEvent& event);
2025-05-13 21:49:26 +08:00
void OnRightClick(wxGridEvent& event);
2025-05-09 22:31:51 +08:00
public:
wxGrid* grid_;
wxTextCtrl* textCtrl_;
2025-05-12 22:07:06 +08:00
wxTextCtrl* edRemoteId_;
wxButton* btnHome_;
wxButton* btnGet_;
wxButton* btnUpLevel_;
wxButton* btnRefresh_;
2025-05-12 22:07:06 +08:00
2025-05-13 21:49:26 +08:00
wxMenu* menuOperateFile_;
private:
wxWindowID idDown_;
2025-05-12 22:07:06 +08:00
private:
LogControl* logControl_;
std::shared_ptr<ClientCore> clientCore_;
2025-05-08 21:13:36 +08:00
};
#endif // REMOTECONTROL_H