~sachinr/xpad/xpad-qt

« back to all changes in this revision

Viewing changes to src/pad.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:
4
4
#include<QObject>
5
5
#include<padwindow.h>
6
6
 
 
7
using namespace std;
 
8
 
7
9
class Pad : public QObject
8
10
{
9
11
    Q_OBJECT
10
12
    PadWindow padwindow;
11
13
    QString windowBuffer;
 
14
    QString filename;
12
15
public:
13
16
    Pad();
14
17
    ~Pad();
15
18
public slots:
16
19
    void dataReceived(QString data);
17
 
    PadWindow& GetWindow();
 
20
public:
18
21
    void show();
19
 
 
 
22
    void loadFromFile();
 
23
    void saveToFile();
 
24
    void setFilename(QString file);
20
25
};
21
26
 
22
27
#endif // PAD_H