1 class OamViewer : public QbWindow { 2 Q_OBJECT 3 4 public: 5 QHBoxLayout *layout; 6 QTreeWidget *list; 7 QVBoxLayout *controlLayout; 8 struct Canvas : public QWidget { 9 QImage *image; 10 void paintEvent(QPaintEvent*); 11 Canvas(); 12 } *canvas; 13 QCheckBox *autoUpdateBox; 14 QPushButton *refreshButton; 15 16 void autoUpdate(); 17 OamViewer(); 18 19 public slots: 20 void show(); 21 void refresh(); 22 }; 23 24 extern OamViewer *oamViewer; 25