diff options
Diffstat (limited to 'utils/themeeditor/projectfiles.h')
-rw-r--r-- | utils/themeeditor/projectfiles.h | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/utils/themeeditor/projectfiles.h b/utils/themeeditor/projectfiles.h deleted file mode 100644 index 6fec62882c..0000000000 --- a/utils/themeeditor/projectfiles.h +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2010 Robert Bieber | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #ifndef PROJECTFILES_H | ||
23 | #define PROJECTFILES_H | ||
24 | |||
25 | #include "projectmodel.h" | ||
26 | #include <QHash> | ||
27 | |||
28 | class ProjectFiles : public ProjectNode | ||
29 | { | ||
30 | public: | ||
31 | ProjectFiles(QHash<QString, QString>& settings, ProjectModel* model, | ||
32 | ProjectNode* parent); | ||
33 | virtual ~ProjectFiles(); | ||
34 | |||
35 | virtual ProjectNode* parent() const; | ||
36 | virtual ProjectNode* child(int row) const; | ||
37 | virtual int numChildren() const; | ||
38 | virtual int row() const; | ||
39 | virtual QVariant data(int column) const; | ||
40 | virtual Qt::ItemFlags flags(int column) const; | ||
41 | virtual void activated(); | ||
42 | |||
43 | QString getBase(){ return base; } | ||
44 | |||
45 | private: | ||
46 | ProjectNode* parentLink; | ||
47 | QString base; | ||
48 | |||
49 | }; | ||
50 | |||
51 | /* A class to enumerate a single file */ | ||
52 | class ProjectFile: public ProjectNode | ||
53 | { | ||
54 | public: | ||
55 | ProjectFile(QString file, ProjectModel* model, ProjectNode* parent); | ||
56 | virtual ~ProjectFile(); | ||
57 | |||
58 | virtual ProjectNode* parent() const{ return parentLink; } | ||
59 | virtual ProjectNode* child(int row) const{ return 0; } | ||
60 | virtual int numChildren() const{ return 0; } | ||
61 | virtual int row() const{ | ||
62 | return parentLink->indexOf(const_cast<ProjectFile*>(this)); | ||
63 | } | ||
64 | virtual QVariant data(int column) const; | ||
65 | virtual Qt::ItemFlags flags(int column) const; | ||
66 | virtual void activated(); | ||
67 | |||
68 | private: | ||
69 | ProjectNode* parentLink; | ||
70 | QString file; | ||
71 | }; | ||
72 | |||
73 | #endif // PROJECTFILES_H | ||