src/file.h

changeset 500
cad8cdc42a64
parent 498
791c831c8020
child 504
6a1fa662bfc1
equal deleted inserted replaced
499:ebd30d9eb667 500:cad8cdc42a64
45 // The LDFile class stores a file opened in LDForge either as a editable file 45 // The LDFile class stores a file opened in LDForge either as a editable file
46 // for the user or for subfile caching. Its methods handle file input and output. 46 // for the user or for subfile caching. Its methods handle file input and output.
47 // 47 //
48 // A file is implicit when they are opened automatically for caching purposes 48 // A file is implicit when they are opened automatically for caching purposes
49 // and are hidden from the user. User-opened files are explicit (not implicit). 49 // and are hidden from the user. User-opened files are explicit (not implicit).
50 //
51 // The default name is a placeholder, initially suggested name for a file. The
52 // primitive generator uses this to give initial names to primitives.
50 // ============================================================================= 53 // =============================================================================
51 class LDFile : public QObject 54 class LDFile : public QObject
52 { Q_OBJECT 55 { Q_OBJECT
53 READ_PROPERTY (List<LDObject*>, objects, setObjects) 56 READ_PROPERTY (List<LDObject*>, objects, setObjects)
54 READ_PROPERTY (History, history, setHistory) 57 READ_PROPERTY (History, history, setHistory)
55 READ_PROPERTY (List<LDObject*>, vertices, setVertices) 58 READ_PROPERTY (List<LDObject*>, vertices, setVertices)
56 PROPERTY (str, name, setName) 59 PROPERTY (str, name, setName)
60 PROPERTY (str, defaultName, setDefaultName)
57 PROPERTY (bool, implicit, setImplicit) 61 PROPERTY (bool, implicit, setImplicit)
58 PROPERTY (List<LDObject*>, cache, setCache) 62 PROPERTY (List<LDObject*>, cache, setCache)
59 PROPERTY (long, savePos, setSavePos) 63 PROPERTY (long, savePos, setSavePos)
60 DECLARE_PROPERTY (QListWidgetItem*, listItem, setListItem) 64 DECLARE_PROPERTY (QListWidgetItem*, listItem, setListItem)
61 65

mercurial