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
2025-05-13 21:49:26 +08:00

51 lines
995 B
C++

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