All Classes Namespaces Files Functions Variables Enumerations Enumerator
programs/UrgViewer/UrgViewerWindow.h
Go to the documentation of this file.
00001 #ifndef URG_VIEWER_WINDOW_H
00002 #define URG_VIEWER_WINDOW_H
00003 
00013 #include "ui_UrgViewerWindowForm.h"
00014 #include <memory>
00015 
00016 namespace qrk
00017 {
00018     class CaptureSettings;
00019 }
00020 
00021 
00025 class UrgViewerWindow : public QMainWindow, private Ui::UrgViewerWindowForm
00026 {
00027     Q_OBJECT;
00028 
00029 public:
00030     UrgViewerWindow(int argc, char *argv[]);
00031     ~UrgViewerWindow(void);
00032 
00033 signals:
00034     void reconnectCompleted(void);
00035 
00036 private slots:
00037     void rescanPressed(void);
00038     void connectPressed(bool connection, const std::string& device);
00039     void connectPressed(bool connection,
00040                         const std::string& address, unsigned short port);
00041     void connectDevice(bool);
00042     void captureHandler(void);
00043     void initializeView(void);
00044     void updateStatusBar(bool active, long x_mm, long y_mm);
00045     void updateScansInterval(int msec);
00046     void aboutApplication(void);
00047     void autoPlay(void);
00048     void zoomSmaller(void);
00049     void zoomLarger(void);
00050     void closeEvent(QCloseEvent* event);
00051     void showCaptureSettingWidget(void);
00052     void receiveCaptureSettings(const qrk::CaptureSettings& settings);
00053     void receiveReconnectRequest(void);
00054     void showLengthViewWidget(void);
00055     void receiveLengthViewRequest(void);
00056     void receiveWidgetClose(const std::string& widget_name);
00057     void receiveDrawLine(const std::vector<int>& indexes);
00058     void selectSerial(void);
00059     void selectEthernet(void);
00060 
00061 private:
00062     UrgViewerWindow(const UrgViewerWindow& rhs);
00063     UrgViewerWindow& operator = (const UrgViewerWindow& rhs);
00064 
00065     struct pImpl;
00066     std::auto_ptr<pImpl> pimpl;
00067 };
00068 
00069 #endif /* !URG_VIEWER_WINDOW_H */