Skip to content

Commit

Permalink
Initial reorganization
Browse files Browse the repository at this point in the history
  • Loading branch information
dflemstr committed May 21, 2011
1 parent 1327e7c commit 716efe9
Show file tree
Hide file tree
Showing 92 changed files with 92 additions and 13 deletions.
7 changes: 1 addition & 6 deletions .gitignore
Expand Up @@ -9,20 +9,15 @@
# Preserve files used by Git! # Preserve files used by Git!
!.git* !.git*


# Preserve ".initial", just for the memories...
!.initial

# Ignore build-process related files # Ignore build-process related files
Makefile Makefile
*.o *.o
*.so *.so
*.a *.a
moc_* moc_*
qrc_* qrc_*
panorama/target/panorama target/panorama


# Ignore project-related user-generated files # Ignore project-related user-generated files
*.user *.user


# Ignore that #¤#% config file that is modified every time we test the application
panorama/target/settings.cfg
Expand Up @@ -4,7 +4,7 @@ QT += declarative
CONFIG += qt plugin CONFIG += qt plugin


TARGET = $$qtLibraryTarget($$TARGET) TARGET = $$qtLibraryTarget($$TARGET)
DESTDIR = ../../panorama/target/plugins/Panorama/Applications DESTDIR = ../../target/plugins/Panorama/Applications


INCLUDEPATH += ../../panorama/include INCLUDEPATH += ../../panorama/include
INCLUDEPATH += ../../pandora-libraries/pnd/include INCLUDEPATH += ../../pandora-libraries/pnd/include
Expand Down
2 changes: 1 addition & 1 deletion panorama-plugins/pandora-plugin/pandora-plugin.pro
Expand Up @@ -4,7 +4,7 @@ QT += declarative
CONFIG += qt plugin CONFIG += qt plugin


TARGET = $$qtLibraryTarget($$TARGET) TARGET = $$qtLibraryTarget($$TARGET)
DESTDIR = ../../panorama/target/plugins/Panorama/Pandora DESTDIR = ../../target/plugins/Panorama/Pandora


INCLUDEPATH += ../../panorama/include INCLUDEPATH += ../../panorama/include
INCLUDEPATH += ../../pandora-libraries/pnd/include INCLUDEPATH += ../../pandora-libraries/pnd/include
Expand Down
1 change: 1 addition & 0 deletions panorama-plugins/panorama-plugins.pro
Expand Up @@ -7,3 +7,4 @@ SUBDIRS = \
applications-plugin \ applications-plugin \
systeminformation-plugin \ systeminformation-plugin \
pandora-plugin pandora-plugin

10 changes: 9 additions & 1 deletion panorama-plugins/settings-plugin/settings-plugin.pro
Expand Up @@ -4,7 +4,15 @@ QT += declarative
CONFIG += qt plugin CONFIG += qt plugin


TARGET = $$qtLibraryTarget($$TARGET) TARGET = $$qtLibraryTarget($$TARGET)
DESTDIR = ../../panorama/target/plugins/Panorama/Settings DESTDIR = ../../target/plugins/Panorama/Settings

pandora {
DEFINES += PANDORA
}

CONFIG(release, debug|release) {
DEFINES += RELEASE
}


INCLUDEPATH += ../../panorama/include INCLUDEPATH += ../../panorama/include


Expand Down
4 changes: 4 additions & 0 deletions panorama-plugins/settings-plugin/src/configuration.cpp
Expand Up @@ -85,7 +85,11 @@ void ConfigurationPrivate::initConfiguration()
} }


//XXX Hack, add different method for "virtual" settings? //XXX Hack, add different method for "virtual" settings?
#if defined(PANDORA) || (!defined(PANDORA) && !defined(RELEASE))
settings->setValue("panorama/dataDirectory", QCoreApplication::applicationDirPath()); settings->setValue("panorama/dataDirectory", QCoreApplication::applicationDirPath());
#else
settings->setValue("panorama/dataDirectory", "/usr/share/panorama");
#endif


watcher.addPath(settings->fileName()); watcher.addPath(settings->fileName());
qDebug() << "Settings are saved in" << settings->fileName(); qDebug() << "Settings are saved in" << settings->fileName();
Expand Down
Expand Up @@ -4,7 +4,7 @@ QT += declarative
CONFIG += qt plugin CONFIG += qt plugin


TARGET = $$qtLibraryTarget($$TARGET) TARGET = $$qtLibraryTarget($$TARGET)
DESTDIR = ../../panorama/target/plugins/Panorama/SystemInformation DESTDIR = ../../target/plugins/Panorama/SystemInformation


INCLUDEPATH += ../../panorama/include INCLUDEPATH += ../../panorama/include


Expand Down
2 changes: 1 addition & 1 deletion panorama-plugins/textfile-plugin/textfile-plugin.pro
Expand Up @@ -4,7 +4,7 @@ QT += declarative
CONFIG += qt plugin CONFIG += qt plugin


TARGET = $$qtLibraryTarget($$TARGET) TARGET = $$qtLibraryTarget($$TARGET)
DESTDIR = ../../panorama/target/plugins/Panorama/TextFile DESTDIR = ../../target/plugins/Panorama/TextFile


INCLUDEPATH += ../../panorama/include INCLUDEPATH += ../../panorama/include


Expand Down
2 changes: 1 addition & 1 deletion panorama-plugins/ui-plugin/ui-plugin.pro
Expand Up @@ -4,7 +4,7 @@ QT += declarative
CONFIG += qt plugin CONFIG += qt plugin


TARGET = $$qtLibraryTarget($$TARGET) TARGET = $$qtLibraryTarget($$TARGET)
DESTDIR = ../../panorama/target/plugins/Panorama/UI DESTDIR = ../../target/plugins/Panorama/UI


INCLUDEPATH += ../../panorama/include INCLUDEPATH += ../../panorama/include


Expand Down
20 changes: 20 additions & 0 deletions panorama.pro
Expand Up @@ -11,3 +11,23 @@ panorama.depends = panorama-plugins


panorama-plugins.subdir = panorama-plugins panorama-plugins.subdir = panorama-plugins
panorama-plugins.depends = pandora-libraries panorama-plugins.depends = pandora-libraries

unix {
isEmpty(PREFIX) {
PREFIX = /usr
}
BINDIR = $$PREFIX/bin
DATADIR = $$PREFIX/share
LIBDIR = $$PREFIX/lib

interfaces.files = target/interfaces/*
interfaces.path = $$DATADIR/panorama/interfaces

plugins.files = target/plugins/*
plugins.path = $$LIBDIR/panorama/plugins/

panorama.files = target/panorama
panorama.path = $$BINDIR

INSTALLS += interfaces plugins panorama
}
2 changes: 1 addition & 1 deletion panorama/panorama.pro
Expand Up @@ -20,7 +20,7 @@ poltergeist {
} }


TARGET = panorama TARGET = panorama
DESTDIR = target DESTDIR = ../target
TEMPLATE = app TEMPLATE = app
INCLUDEPATH += include INCLUDEPATH += include
SOURCES += \ SOURCES += \
Expand Down
2 changes: 2 additions & 0 deletions panorama/src/mainwindow.cpp
Expand Up @@ -31,6 +31,8 @@ MainWindow::MainWindow(QWidget *parent) :


//Make plugins available //Make plugins available
engine()->addImportPath(QCoreApplication::applicationDirPath() + "/plugins"); engine()->addImportPath(QCoreApplication::applicationDirPath() + "/plugins");
engine()->addImportPath("/usr/lib/panorama/plugins");
engine()->addImportPath(QDir::homePath() + "/.panorama/plugins");


//Load the main QML file //Load the main QML file
setSource(QUrl("qrc:/root.qml")); setSource(QUrl("qrc:/root.qml"));
Expand Down
8 changes: 8 additions & 0 deletions target/interfaces/Colors/Colors.qmlproject
@@ -0,0 +1,8 @@
import QmlProject 1.0

Project {
QmlFiles { directory: "." }
JavaScriptFiles { directory: "." }
ImageFiles { directory: "." }
importPaths: [ "../../target/plugins/", "../../plugins/", "/usr/lib/panorama/plugins/" ]
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -7,6 +7,7 @@ import Panorama.Pandora 1.0
import Panorama.Applications 1.0 import Panorama.Applications 1.0
import "qml" as Helpers import "qml" as Helpers
import "qml/parser.js" as Parser import "qml/parser.js" as Parser

PanoramaUI { PanoramaUI {
id: ui id: ui
name: "Colors (from PMenu)" name: "Colors (from PMenu)"
Expand Down
8 changes: 8 additions & 0 deletions target/interfaces/Magma/Magma.qmlproject
@@ -0,0 +1,8 @@
import QmlProject 1.0

Project {
QmlFiles { directory: "." }
JavaScriptFiles { directory: "." }
ImageFiles { directory: "." }
importPaths: [ "../../target/plugins/", "../../plugins/", "/usr/lib/panorama/plugins/" ]
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions target/interfaces/Simplicity/Simplicity.qmlproject
@@ -0,0 +1,8 @@
import QmlProject 1.0

Project {
QmlFiles { directory: "." }
JavaScriptFiles { directory: "." }
ImageFiles { directory: "." }
importPaths: [ "../../target/plugins/", "../../plugins/", "/usr/lib/panorama/plugins/" ]
}
File renamed without changes.
8 changes: 8 additions & 0 deletions target/interfaces/Tabbed/Tabbed.qmlproject
@@ -0,0 +1,8 @@
import QmlProject 1.0

Project {
QmlFiles { directory: "." }
JavaScriptFiles { directory: "." }
ImageFiles { directory: "." }
importPaths: [ "../../target/plugins/", "../../plugins/", "/usr/lib/panorama/plugins/" ]
}
File renamed without changes
File renamed without changes.
8 changes: 8 additions & 0 deletions target/interfaces/Test/Test.qmlproject
@@ -0,0 +1,8 @@
import QmlProject 1.0

Project {
QmlFiles { directory: "." }
JavaScriptFiles { directory: "." }
ImageFiles { directory: "." }
importPaths: [ "../../target/plugins/", "../../plugins/", "/usr/lib/panorama/plugins/" ]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions target/interfaces/TestSuite/TestSuite.qmlproject
@@ -0,0 +1,8 @@
import QmlProject 1.0

Project {
QmlFiles { directory: "." }
JavaScriptFiles { directory: "." }
ImageFiles { directory: "." }
importPaths: [ "../../target/plugins/", "../../plugins/", "/usr/lib/panorama/plugins/" ]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 716efe9

Please sign in to comment.