src/ldproject.h

Wed, 04 Mar 2015 15:37:21 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Wed, 04 Mar 2015 15:37:21 +0200
branch
projects
changeset 936
aee883858c90
child 937
d5a58674ccd1
permissions
-rw-r--r--

- commit work done on projects

936
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
1 #pragma once
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
2 #include "main.h"
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
3
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
4 using LDProjectPtr = QSharedPointer<class LDProject>;
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
5
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
6 class LDProject
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
7 {
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
8 public:
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
9 LDProject (const LDProject&) = delete;
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
10 ~LDProject();
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
11
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
12 bool save (const QString& filename);
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
13
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
14 void operator= (const LDProject&) = delete;
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
15 static LDProjectPtr LoadFromFile (const QString& filename);
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
16 static LDProjectPtr NewProject();
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
17
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
18 private:
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
19 QString m_filePath;
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
20 QList<LDDocumentPtr> m_documents;
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
21 LDProject();
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
22 };
aee883858c90 - commit work done on projects
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
23

mercurial