~sachinr/xpad/xpad-qt

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
#ifndef PADGROUP_H
#define PADGROUP_H

#include<list>
#include<QObject>
#include <map>

class Pad;

using namespace std;

class PadGroup : public QObject
{
    Q_OBJECT
    list<Pad*> pads;
    map<Pad*, QString> padToFilenameMap;
    int newPadIndex;
    QString directory;
    Pad* newPadWithInfo(QString filename);
public:
    PadGroup();
    const list<Pad*>& GetPads();
    void SetDirectory(QString dir);
    void LoadPads();
    ~PadGroup();
public slots:
    void CreateNewPad();
};

#endif // PADGROUP_H