tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FileSaver.h
Go to the documentation of this file.
1 // (c) 2017 Alex Nadzharov
2 // License: GPL3
3 
4 #ifndef CM_FILESAVER_H
5 #define CM_FILESAVER_H
6 
7 //
8 class QString;
9 class QFile;
10 
11 namespace tilde {
12 
13 class PatchWindow;
14 
15 class CanvasData;
16 
20 class FileSaver {
21 private:
22  FileSaver(){};
23 
24 public:
30  static void save(QString fname, CanvasData* canvasData);
31 
37  static void saveCanvas(CanvasData* CanvasData, QFile* file);
38 };
39 }
40 
41 #endif // CM_FILESAVER_H
shared canvas data model - boxes, patchcords
Definition: CanvasData.h:22
static void saveCanvas(CanvasData *CanvasData, QFile *file)
new API saveCanvas
Definition: FileSaver.cpp:10
static void save(QString fname, CanvasData *canvasData)
save file to disk; runs 'savecanvas' recursively
Definition: FileSaver.cpp:24
saves pd files on 'client' (GUI) side
Definition: FileSaver.h:20