Start to move mainwindow widgets into a subdirectory,
get rid of some unneeded includes
This commit is contained in:
parent
efa16e9236
commit
02d2a1a1f4
27 changed files with 43 additions and 41 deletions
|
@ -13,7 +13,6 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
|
||||||
#include "Button.h"
|
#include "Button.h"
|
||||||
|
|
||||||
#include "Skin.h"
|
#include "Skin.h"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
#include "mainwindow.h"
|
||||||
#include "Display.h"
|
#include "Display.h"
|
||||||
|
|
||||||
#include "TitleBar.h"
|
#include "TitleBar.h"
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
|
||||||
#include "NumberDisplay.h"
|
#include "NumberDisplay.h"
|
||||||
|
|
||||||
#include "TimeDisplay.h"
|
#include "TimeDisplay.h"
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
|
||||||
|
|
||||||
#include "Skin.h"
|
#include "Skin.h"
|
||||||
#include "PixWidget.h"
|
#include "PixWidget.h"
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
#include "PosBar.h"
|
#include "PosBar.h"
|
||||||
#include "Skin.h"
|
#include "Skin.h"
|
||||||
|
|
|
@ -557,12 +557,12 @@ Skin::BuildSliders (void)
|
||||||
void
|
void
|
||||||
Skin::BuildNumbers (void)
|
Skin::BuildNumbers (void)
|
||||||
{
|
{
|
||||||
uint num = 11;
|
uint num = 12;
|
||||||
|
|
||||||
QPixmap *img = getPixmap("numbers");
|
QPixmap *img = getPixmap("nums_ex");
|
||||||
if (!img) {
|
if (!img) {
|
||||||
num = 12;
|
num = 11;
|
||||||
img = getPixmap ("nums_ex");
|
img = getPixmap ("numbers");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(img)
|
if(img)
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
#include "mainwindow.h"
|
||||||
#include "Skin.h"
|
#include "Skin.h"
|
||||||
#include "SkinChooser.h"
|
#include "SkinChooser.h"
|
||||||
|
|
||||||
|
|
|
@ -13,13 +13,14 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
|
||||||
|
|
||||||
#include <QListWidget>
|
#include <QListWidget>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QMainWindow>
|
#include <QMainWindow>
|
||||||
|
|
||||||
|
class MainWindow;
|
||||||
|
|
||||||
class SkinList : public QListWidget
|
class SkinList : public QListWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -13,10 +13,11 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
|
||||||
#include "Display.h"
|
#include "Display.h"
|
||||||
#include "TextBar.h"
|
#include "TextBar.h"
|
||||||
|
|
||||||
|
#include <QSettings>
|
||||||
|
|
||||||
TextScroller::TextScroller (QWidget *parent, uint w,
|
TextScroller::TextScroller (QWidget *parent, uint w,
|
||||||
uint h, const QString &name) :
|
uint h, const QString &name) :
|
||||||
QWidget (parent)
|
QWidget (parent)
|
||||||
|
|
|
@ -13,12 +13,11 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainDisplay.h"
|
#include "mainwindow.h"
|
||||||
|
#include "maindisplay.h"
|
||||||
#include "TimeDisplay.h"
|
#include "TimeDisplay.h"
|
||||||
#include "NumberDisplay.h"
|
#include "NumberDisplay.h"
|
||||||
|
|
||||||
#include "MainWindow.h"
|
|
||||||
|
|
||||||
#include <QPen>
|
#include <QPen>
|
||||||
|
|
||||||
TimeDisplay::TimeDisplay (QWidget *parent, int time) : PixWidget (parent)
|
TimeDisplay::TimeDisplay (QWidget *parent, int time) : PixWidget (parent)
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
#include "mainwindow.h"
|
||||||
#include "TitleBar.h"
|
#include "TitleBar.h"
|
||||||
#include "Display.h"
|
#include "Display.h"
|
||||||
#include "SkinChooser.h"
|
#include "SkinChooser.h"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
#include "mainwindow.h"
|
||||||
#include "TitleBar.h"
|
#include "TitleBar.h"
|
||||||
#include "equalizer.h"
|
#include "equalizer.h"
|
||||||
#include "Button.h"
|
#include "Button.h"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
#include "mainwindow.h"
|
||||||
#include "playlist.h"
|
#include "playlist.h"
|
||||||
#include "equalizer.h"
|
#include "equalizer.h"
|
||||||
#include "Skin.h"
|
#include "Skin.h"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ClutterBar.h"
|
#include "clutterbar.h"
|
||||||
#include "Skin.h"
|
#include "Skin.h"
|
||||||
|
|
||||||
ClutterBar::ClutterBar (QWidget *parent) : PixWidget (parent)
|
ClutterBar::ClutterBar (QWidget *parent) : PixWidget (parent)
|
|
@ -15,8 +15,8 @@
|
||||||
|
|
||||||
#include <xmmsclient/xmmsclient++.h>
|
#include <xmmsclient/xmmsclient++.h>
|
||||||
#include "XMMSHandler.h"
|
#include "XMMSHandler.h"
|
||||||
#include "MainDisplay.h"
|
#include "maindisplay.h"
|
||||||
#include "MainWindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
#include "TitleBar.h"
|
#include "TitleBar.h"
|
||||||
#include "Button.h"
|
#include "Button.h"
|
||||||
|
@ -24,12 +24,12 @@
|
||||||
#include "NumberDisplay.h"
|
#include "NumberDisplay.h"
|
||||||
#include "TimeDisplay.h"
|
#include "TimeDisplay.h"
|
||||||
#include "SmallNumberDisplay.h"
|
#include "SmallNumberDisplay.h"
|
||||||
#include "StereoMono.h"
|
#include "stereomono.h"
|
||||||
#include "PosBar.h"
|
#include "PosBar.h"
|
||||||
#include "PlayStatus.h"
|
#include "PlayStatus.h"
|
||||||
#include "VolumeSlider.h"
|
#include "VolumeSlider.h"
|
||||||
#include "playlist.h"
|
#include "playlist.h"
|
||||||
#include "ClutterBar.h"
|
#include "clutterbar.h"
|
||||||
|
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
|
@ -13,15 +13,15 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
#ifdef HAVE_SERVERBROWSER
|
#ifdef HAVE_SERVERBROWSER
|
||||||
#include "ServerBrowser.h"
|
#include "ServerBrowser.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "playlist.h"
|
#include "playlist.h"
|
||||||
#include "MainDisplay.h"
|
#include "maindisplay.h"
|
||||||
#include "ShadedDisplay.h"
|
#include "shadeddisplay.h"
|
||||||
#include "equalizer.h"
|
#include "equalizer.h"
|
||||||
|
|
||||||
#include <QSettings>
|
#include <QSettings>
|
14
src/mainwindow/mainwindow.pri
Normal file
14
src/mainwindow/mainwindow.pri
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
HEADERS += clutterbar.h \
|
||||||
|
mainwindow.h \
|
||||||
|
maindisplay.h \
|
||||||
|
shadeddisplay.h \
|
||||||
|
stereomono.h
|
||||||
|
|
||||||
|
SOURCES += clutterbar.cpp \
|
||||||
|
mainwindow.cpp \
|
||||||
|
maindisplay.cpp \
|
||||||
|
shadeddisplay.cpp \
|
||||||
|
stereomono.cpp
|
||||||
|
|
||||||
|
INCLUDEPATH += $$PWD
|
||||||
|
DEPENDPATH += $$PWD
|
|
@ -16,7 +16,7 @@
|
||||||
#include <xmmsclient/xmmsclient++.h>
|
#include <xmmsclient/xmmsclient++.h>
|
||||||
#include "XMMSHandler.h"
|
#include "XMMSHandler.h"
|
||||||
|
|
||||||
#include "ShadedDisplay.h"
|
#include "shadeddisplay.h"
|
||||||
#include "TitleBar.h"
|
#include "TitleBar.h"
|
||||||
#include "Button.h"
|
#include "Button.h"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "StereoMono.h"
|
#include "stereomono.h"
|
||||||
#include "Skin.h"
|
#include "Skin.h"
|
||||||
|
|
||||||
StereoMono::StereoMono (QWidget *parent) : PixWidget (parent)
|
StereoMono::StereoMono (QWidget *parent) : PixWidget (parent)
|
|
@ -14,7 +14,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
#include "mainwindow.h"
|
||||||
#include "BrowseDialog.h"
|
#include "BrowseDialog.h"
|
||||||
#include "playlist.h"
|
#include "playlist.h"
|
||||||
#include "playlistview.h"
|
#include "playlistview.h"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MainWindow.h"
|
// #include "mainwindow.h"
|
||||||
#include "settingsdialog.h"
|
#include "settingsdialog.h"
|
||||||
|
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
|
|
11
src/src.pri
11
src/src.pri
|
@ -1,12 +1,11 @@
|
||||||
include($$PWD/widgets/widgets.pri)
|
include($$PWD/widgets/widgets.pri)
|
||||||
|
include($$PWD/mainwindow/mainwindow.pri)
|
||||||
include($$PWD/playlist/playlist.pri)
|
include($$PWD/playlist/playlist.pri)
|
||||||
include($$PWD/equalizer/equalizer.pri)
|
include($$PWD/equalizer/equalizer.pri)
|
||||||
|
|
||||||
HEADERS += PixWidget.h \
|
HEADERS += PixWidget.h \
|
||||||
Skin.h \
|
Skin.h \
|
||||||
MainWindow.h \
|
|
||||||
Display.h \
|
Display.h \
|
||||||
MainDisplay.h \
|
|
||||||
TitleBar.h \
|
TitleBar.h \
|
||||||
Button.h \
|
Button.h \
|
||||||
TextBar.h \
|
TextBar.h \
|
||||||
|
@ -14,14 +13,11 @@ HEADERS += PixWidget.h \
|
||||||
TimeDisplay.h \
|
TimeDisplay.h \
|
||||||
XMMSHandler.h \
|
XMMSHandler.h \
|
||||||
SmallNumberDisplay.h \
|
SmallNumberDisplay.h \
|
||||||
StereoMono.h \
|
|
||||||
PosBar.h \
|
PosBar.h \
|
||||||
PlayStatus.h \
|
PlayStatus.h \
|
||||||
ShadedDisplay.h \
|
|
||||||
SkinChooser.h \
|
SkinChooser.h \
|
||||||
settingsdialog.h \
|
settingsdialog.h \
|
||||||
VolumeSlider.h \
|
VolumeSlider.h \
|
||||||
ClutterBar.h \
|
|
||||||
FileDialog.h \
|
FileDialog.h \
|
||||||
BrowseModel.h \
|
BrowseModel.h \
|
||||||
BrowseDialog.h
|
BrowseDialog.h
|
||||||
|
@ -29,9 +25,7 @@ HEADERS += PixWidget.h \
|
||||||
SOURCES += main.cpp \
|
SOURCES += main.cpp \
|
||||||
PixWidget.cpp \
|
PixWidget.cpp \
|
||||||
Skin.cpp \
|
Skin.cpp \
|
||||||
MainWindow.cpp \
|
|
||||||
Display.cpp \
|
Display.cpp \
|
||||||
MainDisplay.cpp \
|
|
||||||
TitleBar.cpp \
|
TitleBar.cpp \
|
||||||
Button.cpp \
|
Button.cpp \
|
||||||
TextBar.cpp \
|
TextBar.cpp \
|
||||||
|
@ -39,14 +33,11 @@ SOURCES += main.cpp \
|
||||||
TimeDisplay.cpp \
|
TimeDisplay.cpp \
|
||||||
XMMSHandler.cpp \
|
XMMSHandler.cpp \
|
||||||
SmallNumberDisplay.cpp \
|
SmallNumberDisplay.cpp \
|
||||||
StereoMono.cpp \
|
|
||||||
PosBar.cpp \
|
PosBar.cpp \
|
||||||
PlayStatus.cpp \
|
PlayStatus.cpp \
|
||||||
ShadedDisplay.cpp \
|
|
||||||
SkinChooser.cpp \
|
SkinChooser.cpp \
|
||||||
settingsdialog.cpp \
|
settingsdialog.cpp \
|
||||||
VolumeSlider.cpp \
|
VolumeSlider.cpp \
|
||||||
ClutterBar.cpp \
|
|
||||||
FileDialog.cpp \
|
FileDialog.cpp \
|
||||||
BrowseModel.cpp \
|
BrowseModel.cpp \
|
||||||
BrowseDialog.cpp
|
BrowseDialog.cpp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue