-
Notifications
You must be signed in to change notification settings - Fork 0
/
regionlistframe.h
56 lines (40 loc) · 1.21 KB
/
regionlistframe.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef REGIONLISTFRAME_H
#define REGIONLISTFRAME_H
#include <QFrame>
#include <QStringList>
#include<QListWidgetItem>
#include "ShapeStatistics.h"
#include <QModelIndex>
namespace Ui {
class RegionListFrame;
}
class AnnotatorWnd;
class RegionListFrame : public QFrame
{
Q_OBJECT
private:
std::vector< ShapeStatistics<> > mRegionDescriptions;
AnnotatorWnd *mAnnotatorWnd;
public:
explicit RegionListFrame(QWidget *parent, AnnotatorWnd *annWnd);
~RegionListFrame();
void setRegionData( const std::vector< ShapeStatistics<> > &info );
void moveToBottomLeftCorner();
public slots:
void listCurrentItemChanged( QListWidgetItem *, QListWidgetItem * );
void saveAsClicked();
void listClickedSignal(QModelIndex mIdx);
void butLabelRegionClicked();
protected:
void keyReleaseEvent(QKeyEvent *);
void closeEvent(QCloseEvent *event);
signals:
// this is emitted when the current region selection is changed
void currentRegionChanged(int newRegionIdx);
// emitted when the user clicked to label a region
void labelRegion( unsigned int regionIdx , unsigned int labelIdx );
void widgetClosed();
private:
Ui::RegionListFrame *ui;
};
#endif // REGIONLISTFRAME_H