diff --git a/src/active/CMakeLists.txt b/src/active/CMakeLists.txt
index 6daf6527d..cde0b65c1 100644
--- a/src/active/CMakeLists.txt
+++ b/src/active/CMakeLists.txt
@@ -4,12 +4,12 @@ SET( touchmahawkSources ${final_src} )
#LIST( REMOVE_ITEM touchmahawkSources "main.cpp" )
SET( touchmahawkHeaders
- active/tomahawkwindowdeclarative.h
+ active/tomahawktouchwindow.h
)
SET( touchmahawkSources
${touchmahawkSources}
- active/tomahawkwindowdeclarative.cpp
+ active/tomahawktouchwindow.cpp
# active/main.cpp
)
diff --git a/src/active/tomahawkwindowdeclarative.cpp b/src/active/tomahawktouchwindow.cpp
similarity index 89%
rename from src/active/tomahawkwindowdeclarative.cpp
rename to src/active/tomahawktouchwindow.cpp
index af83155ea..cb7766b58 100644
--- a/src/active/tomahawkwindowdeclarative.cpp
+++ b/src/active/tomahawktouchwindow.cpp
@@ -16,7 +16,7 @@
* along with Tomahawk. If not, see .
*/
-#include "active/tomahawkwindowdeclarative.h"
+#include "active/tomahawktouchwindow.h"
#include "utils/logger.h"
#include "audio/audioengine.h"
@@ -27,7 +27,7 @@
#define QMLGUI "/home/domme/dev/sources/tomahawk-qml"
-TomahawkWindowDeclarative::TomahawkWindowDeclarative()
+TomahawkTouchWindow::TomahawkTouchWindow()
: m_view(0)
{
QFileSystemWatcher* watcher = new QFileSystemWatcher;
@@ -41,20 +41,20 @@ TomahawkWindowDeclarative::TomahawkWindowDeclarative()
}
-TomahawkWindowDeclarative::~TomahawkWindowDeclarative()
+TomahawkTouchWindow::~TomahawkTouchWindow()
{
}
-void TomahawkWindowDeclarative::play(const QModelIndex& index)
+void TomahawkTouchWindow::play(const QModelIndex& index)
{
-
+
}
void
-TomahawkWindowDeclarative::loadQml()
+TomahawkTouchWindow::loadQml()
{
tLog() << Q_FUNC_INFO;
qmlRegisterType("org.tomahawkplayer.qmlcomponents", 1, 0, "AudioEngine");
diff --git a/src/active/tomahawkwindowdeclarative.h b/src/active/tomahawktouchwindow.h
similarity index 69%
rename from src/active/tomahawkwindowdeclarative.h
rename to src/active/tomahawktouchwindow.h
index 70f66ff45..723c1dc67 100644
--- a/src/active/tomahawkwindowdeclarative.h
+++ b/src/active/tomahawktouchwindow.h
@@ -16,33 +16,27 @@
* along with Tomahawk. If not, see .
*/
-#ifndef TOMAHAWKWINDOWDECLARATIVE_H
-#define TOMAHAWKWINDOWDECLARATIVE_H
+#ifndef TOMAHAWKTOUCHWINDOW_H
+#define TOMAHAWKTOUCHWINDOW_H
+
+#include "tomahawkwindow.h"
#include
-#include
-class TomahawkWindowDeclarative;
+class TomahawkTouchWindow;
class QFileSystemWatcher;
-
-class TomahawkWindowDeclarative : public QMainWindow
+class TomahawkTouchWindow : public TomahawkWindow
{
Q_OBJECT
public:
- TomahawkWindowDeclarative();
- ~TomahawkWindowDeclarative();
+ TomahawkTouchWindow();
+ ~TomahawkTouchWindow();
public slots:
void play( const QModelIndex& index );
-// protected:
-// void changeEvent( QEvent* e );
-// void closeEvent( QCloseEvent* e );
-// void showEvent( QShowEvent* e );
-// void hideEvent( QHideEvent* e );
-
private slots:
void loadQml();
@@ -52,5 +46,5 @@ private:
};
-#endif // TOMAHAWKWINDOWDECLARATIVE_H
+#endif // TOMAHAWKTOUCHWINDOW_H
diff --git a/src/tomahawkapp.cpp b/src/tomahawkapp.cpp
index 46cdabc7b..b78ba1917 100644
--- a/src/tomahawkapp.cpp
+++ b/src/tomahawkapp.cpp
@@ -70,7 +70,7 @@
#endif
#ifdef TOUCHMAHAWK
- #include "active/tomahawkwindowdeclarative.h"
+ #include "active/tomahawktouchwindow.h"
#endif
// should go to a plugin actually
@@ -230,7 +230,7 @@ TomahawkApp::init()
#ifndef TOUCHMAHAWK
m_mainwindow->show();
#else
- m_declarativeWindow = new TomahawkWindowDeclarative();
+ m_declarativeWindow = new TomahawkTouchWindow();
m_declarativeWindow->setWindowTitle( "Touch-ma-hawk" );
m_declarativeWindow->show();
#endif // TOUCHMAHAWK
diff --git a/src/tomahawkapp.h b/src/tomahawkapp.h
index ecfb549c8..19812bdf7 100644
--- a/src/tomahawkapp.h
+++ b/src/tomahawkapp.h
@@ -70,7 +70,7 @@ class AudioControls;
#endif
#ifdef TOUCHMAHAWK
-class TomahawkWindowDeclarative;
+class TomahawkTouchWindow;
#endif
@@ -97,7 +97,7 @@ public:
#endif
#ifdef TOUCHMAHAWK
- TomahawkWindowDeclarative* declarativeWindow() const { return m_declarativeWindow; }
+ TomahawkTouchWindow* declarativeWindow() const { return m_declarativeWindow; }
#endif
void enableScriptResolver( const QString& scriptPath );
@@ -150,7 +150,7 @@ private:
#endif
#ifdef TOUCHMAHAWK
- TomahawkWindowDeclarative* m_declarativeWindow;
+ TomahawkTouchWindow* m_declarativeWindow;
#endif
bool m_headless;