1 #include "wxViscaControlPanel.h"
2 #include <Gui/StringConv.hh>
8 wxViscaControlPanel::wxViscaControlPanel(
wxWindow* parent )
21 cout<<
"Setting zoom step:"<<step<<endl;
64 wxMessageDialog messageDialog(
this,
65 wxT(
"Initialising Visca pan-tilt unit failed!"),
66 wxT(
"Visca Controller"), wxICON_ERROR | wxOK);
67 messageDialog.ShowModal();
74 wxMessageDialog messageDialog(
this,
75 wxT(
"Closing Visca pan-tilt unit failed!"),
76 wxT(
"Visca Controller"), wxICON_ERROR | wxOK);
77 messageDialog.ShowModal();
85 wxString text= wxT(
"Connected!");
90 wxString text= wxT(
"Disonnected!");
113 int sel =
event.GetInt();
122 cout<<
"CCD Scanning:"<<ret<<endl;
void OnScrollPan(wxScrollEvent &event)
ViscaControl::VISCA_CONSTANT GetCCDScanningMode()
wxString AsciiToWx(const char *thestring)
Converts a C string to a wxString.
void ZoomDirect(short zoom)
void OnButtonReset(wxCommandEvent &event)
void MoveAbsolute(short panPos, short tiltPos)
wxScrolledWindow * m_scrolledWindow1
void OnProgressive(wxCommandEvent &event)
void OnScrollTilt(wxScrollEvent &event)
void OnClose(wxCommandEvent &event)
void OnButtonTele(wxCommandEvent &event)
void OnConnect(wxCommandEvent &event)
void OnScrollZoom(wxScrollEvent &event)
void OnButtonStop(wxCommandEvent &event)
wxTextCtrl * m_textCtrlDevice
void OnButtonWide(wxCommandEvent &event)
wxButton * m_buttonConnect
void OnOpenCam(wxCommandEvent &event)
BIAS::ViscaControl viscaControl_
bool SetCCDScanningMode(VISCA_CONSTANT mode)
Class wxViscaControlPanelInterface.
void OnCloseCam(wxCommandEvent &event)
bool InitPanTiltUnit(std::string port)