tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Static Public Member Functions | Static Public Attributes | List of all members
tilde::FileParser Class Reference

Parses pd files on 'client' (GUI) side. More...

#include <FileParser.h>

Static Public Member Functions

static void setAppController (ApplicationController *appController)
 

used for #X coords

More...
 
static void setParserWindowController (PatchWindowController *wnd)
 
static void setParserWindowControllers (PatchWindowController *wnd, PatchWindowController *, PatchWindowController *first)
 
static PatchWindowControllerparserFirstWindowController ()
 returns first created window More...
 
static PatchWindowControllerparserWindowController ()
 
static void open (QString fname)
 
static void parseQString (QString line)
 

[1] opens file, converts to QStrings, calls 'parseString'

More...
 
static void parseStringListAtoms (PatchWindowController *controller, QStringList list)
 

[2] checks first atoms ("#N", "#X" etc) and sends QStringList of contents to canvas

More...
 
static UIObjectsendStringToCanvas (PatchWindowController *controller, QStringList list)
 

[3] parses QStringLists of atoms to canvas - creates objects etc, converts list, passes data to 'sendStringToCanvas'

More...
 
static bool legacyProcess (PatchWindowController *controller, QStringList list)
 

[3.1] subroutine - formats list and send it to canvas as a string

More...
 

Static Public Attributes

static string pdParserFileName = ""
 
static string legacyCanvasCoords
 

Detailed Description

Parses pd files on 'client' (GUI) side.

'FileParser' and 'FileSaver' should probably be moved to separate library

Member Function Documentation

bool tilde::FileParser::legacyProcess ( PatchWindowController controller,
QStringList  list 
)
static

[3.1] subroutine - formats list and send it to canvas as a string

void tilde::FileParser::open ( QString  fname)
static
void tilde::FileParser::parseQString ( QString  line)
static

[1] opens file, converts to QStrings, calls 'parseString'

PatchWindowController * tilde::FileParser::parserFirstWindowController ( )
static

returns first created window

mostly used by OOP loader

mostly used by OOP loader

Returns
PatchWindowController * tilde::FileParser::parserWindowController ( )
static
void tilde::FileParser::parseStringListAtoms ( PatchWindowController controller,
QStringList  list 
)
static

[2] checks first atoms ("#N", "#X" etc) and sends QStringList of contents to canvas

UIObject * tilde::FileParser::sendStringToCanvas ( PatchWindowController controller,
QStringList  list 
)
static

[3] parses QStringLists of atoms to canvas - creates objects etc, converts list, passes data to 'sendStringToCanvas'

void tilde::FileParser::setAppController ( ApplicationController appController)
static

used for #X coords

void tilde::FileParser::setParserWindowController ( PatchWindowController wnd)
static
void tilde::FileParser::setParserWindowControllers ( PatchWindowController wnd,
PatchWindowController ,
PatchWindowController first 
)
static

Member Data Documentation

string tilde::FileParser::legacyCanvasCoords
static
string tilde::FileParser::pdParserFileName = ""
static

The documentation for this class was generated from the following files: