~sachinr/xpad/xpad-qt

« back to all changes in this revision

Viewing changes to src/padgroup.h

  • Committer: Sachin Raut
  • Date: 2013-09-19 16:29:31 UTC
  • Revision ID: great.sachin@gmail.com-20130919162931-rkup975f66xjsgvr
pad saving with 0 based files
added persistency to pads.
changed icon and saved pads path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
#include<list>
5
5
#include<QObject>
 
6
#include <map>
6
7
 
7
8
class Pad;
8
9
 
12
13
{
13
14
    Q_OBJECT
14
15
    list<Pad*> pads;
 
16
    map<Pad*, QString> padToFilenameMap;
 
17
    int newPadIndex;
 
18
    QString directory;
 
19
    Pad* newPadWithInfo(QString filename);
15
20
public:
16
21
    PadGroup();
17
22
    const list<Pad*>& GetPads();
 
23
    void SetDirectory(QString dir);
 
24
    void LoadPads();
18
25
    ~PadGroup();
19
26
public slots:
20
27
    void CreateNewPad();