Go to the documentation of this file.00001 #ifndef LENGTH_VIEW_WIDGET_H
00002 #define LENGTH_VIEW_WIDGET_H
00003
00013 #include "ui_LengthViewWidgetForm.h"
00014 #include <memory>
00015
00016
00020 class LengthViewWidget : public QWidget, private Ui::LengthViewWidgetForm
00021 {
00022 Q_OBJECT;
00023
00024 public:
00025 LengthViewWidget(QWidget* parent = 0);
00026 ~LengthViewWidget(void);
00027
00028 void clear(void);
00029 void setMinDistance(size_t min_distance);
00030
00031 void setLength(const std::vector<long>& length_data);
00032 void setIntensity(const std::vector<long>& intensity_data);
00033
00034 signals:
00035 void lengthViewRequest(void);
00036 void drawLineRequest(const std::vector<int>& indexes);
00037 void widgetClose(const std::string& widget_name);
00038 void quit(void);
00039
00040 protected slots:
00041 void closeEvent(QCloseEvent* event);
00042 void updatePressed(void);
00043 void savePressed(void);
00044 void quitPressed(void);
00045 void itemSelectionChanged(void);
00046
00047 private:
00048 LengthViewWidget(const LengthViewWidget& rhs);
00049 LengthViewWidget& operator = (const LengthViewWidget& rhs);
00050
00051 struct pImpl;
00052 std::auto_ptr<pImpl> pimpl;
00053 };
00054
00055 #endif