-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfossrecwidget.h
67 lines (58 loc) · 1.7 KB
/
fossrecwidget.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
57
58
59
60
61
62
63
64
65
66
67
/**
* @file
* Header: Fossil Record Widget
*
* All REvoSim code is released under the GNU General Public License.
* See LICENSE.md files in the programme directory.
*
* All REvoSim code is Copyright 2018 by Mark Sutton, Russell Garwood,
* and Alan R.T. Spencer.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY.
*/
#ifndef FOSSRECWIDGET_H
#define FOSSRECWIDGET_H
#include <QWidget>
#include <QDockWidget>
#include <QTreeWidgetItem>
#include "fossilrecord.h"
#include <QList>
#include <QDir>
namespace Ui {
class FossRecWidget;
}
class FossRecWidget : public QWidget
{
Q_OBJECT
public:
FossRecWidget(QWidget *parent = 0);
~FossRecWidget();
QList <FossilRecord *> FossilRecords;
void MakeRecords();
void RefreshMe();
void HideWarnLabel();
QString LogDirectory;
bool LogDirectoryChosen;
void WriteFiles();
QList<bool> GetSelections();
int findclosest(int x, int y, int min);
QByteArray SaveState();
void RestoreState(QByteArray InArray);
void NewItem(int x, int y, int s);
void SelectedActive(bool s);
void SelectedSparse(int s);
private:
Ui::FossRecWidget *ui;
int NextItem;
private slots:
void on_DeleteButton_pressed();
void on_NewButton_pressed();
void on_SelectAllButton_pressed();
void on_treeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
void on_treeWidget_itemSelectionChanged();
};
#endif // FOSSRECWIDGET_H