forked from utat-uav/Software
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtargetlist.h
More file actions
28 lines (22 loc) · 782 Bytes
/
targetlist.h
File metadata and controls
28 lines (22 loc) · 782 Bytes
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
#ifndef TARGETLIST_H
#define TARGETLIST_H
#include "targetlistitem.h"
class TargetList
{
public:
TargetList(QTableWidget *targetListTable = 0);
~TargetList();
void addNewRow(QString fileName, QString name, QString coordinates, QString description, int x, int y, bool refresh = true);
void refreshTable();
void editRow(int row, QString fileName, QString name, QString coordinates, QString description);
void deleteRow(int row);
void moveUp(int row);
void moveDown(int row);
void sortName(int low, int high);
QList<TargetListItem *>* getRows() const;
private:
QList<TargetListItem *> *rows; //= new QList<TargetListItem *>;
QTableWidget *table;
QString defaultImagePath; // = ":/files/Untitled.png";
};
#endif // TARGETLIST_H