diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-14 06:20:07 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-14 06:20:07 +0000 |
commit | 046832c821276cb07b86519ab3c0dae4ff68173d (patch) | |
tree | 39c3177daf1ecfb4bbce17387a1726486e0aab3f /utils/themeeditor/projectsettings.h | |
parent | 4b0c1cf23bdd3c54296b05ce52f8fec3f29c408e (diff) | |
download | rockbox-046832c821276cb07b86519ab3c0dae4ff68173d.tar.gz rockbox-046832c821276cb07b86519ab3c0dae4ff68173d.zip |
Theme Editor: Stripped out the sub-classes for ProjectModel and turned ProjectModel into a list model, also replaced the project tree view with a list view
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26839 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/projectsettings.h')
-rw-r--r-- | utils/themeeditor/projectsettings.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/utils/themeeditor/projectsettings.h b/utils/themeeditor/projectsettings.h deleted file mode 100644 index ed785ac02c..0000000000 --- a/utils/themeeditor/projectsettings.h +++ /dev/null | |||
@@ -1,71 +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 PROJCETSETTINGS_H | ||
23 | #define PROJECTSETTINGS_H | ||
24 | |||
25 | #include "projectmodel.h" | ||
26 | #include <QHash> | ||
27 | |||
28 | class ProjectSettings : public ProjectNode | ||
29 | { | ||
30 | public: | ||
31 | ProjectSettings(QHash<QString, QString>& settings, ProjectModel* model, | ||
32 | ProjectNode* parent); | ||
33 | virtual ~ProjectSettings(); | ||
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 | private: | ||
44 | ProjectNode* parentLink; | ||
45 | |||
46 | }; | ||
47 | |||
48 | /* A class to enumerate a single file */ | ||
49 | class ProjectSetting: public ProjectNode | ||
50 | { | ||
51 | public: | ||
52 | ProjectSetting(QPair<QString, QString> setting, ProjectModel* model, | ||
53 | ProjectNode* parent); | ||
54 | virtual ~ProjectSetting(); | ||
55 | |||
56 | virtual ProjectNode* parent() const{ return parentLink; } | ||
57 | virtual ProjectNode* child(int row) const{ return 0; } | ||
58 | virtual int numChildren() const{ return 0; } | ||
59 | virtual int row() const{ | ||
60 | return parentLink->indexOf(const_cast<ProjectSetting*>(this)); | ||
61 | } | ||
62 | virtual QVariant data(int column) const; | ||
63 | virtual Qt::ItemFlags flags(int column) const; | ||
64 | virtual void activated(); | ||
65 | |||
66 | private: | ||
67 | ProjectNode* parentLink; | ||
68 | QPair<QString, QString> setting; | ||
69 | }; | ||
70 | |||
71 | #endif // PROJECTSETTINGS_H | ||