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.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "Button.h"
|
||||
|
||||
#include "Skin.h"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "mainwindow.h"
|
||||
#include "Display.h"
|
||||
|
||||
#include "TitleBar.h"
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "NumberDisplay.h"
|
||||
|
||||
#include "TimeDisplay.h"
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
|
||||
#include "Skin.h"
|
||||
#include "PixWidget.h"
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include "PosBar.h"
|
||||
#include "Skin.h"
|
||||
|
|
|
@ -557,12 +557,12 @@ Skin::BuildSliders (void)
|
|||
void
|
||||
Skin::BuildNumbers (void)
|
||||
{
|
||||
uint num = 11;
|
||||
uint num = 12;
|
||||
|
||||
QPixmap *img = getPixmap("numbers");
|
||||
QPixmap *img = getPixmap("nums_ex");
|
||||
if (!img) {
|
||||
num = 12;
|
||||
img = getPixmap ("nums_ex");
|
||||
num = 11;
|
||||
img = getPixmap ("numbers");
|
||||
}
|
||||
|
||||
if(img)
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "mainwindow.h"
|
||||
#include "Skin.h"
|
||||
#include "SkinChooser.h"
|
||||
|
||||
|
|
|
@ -13,13 +13,14 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
|
||||
#include <QListWidget>
|
||||
#include <QLabel>
|
||||
#include <QVBoxLayout>
|
||||
#include <QMainWindow>
|
||||
|
||||
class MainWindow;
|
||||
|
||||
class SkinList : public QListWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
@ -13,10 +13,11 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "Display.h"
|
||||
#include "TextBar.h"
|
||||
|
||||
#include <QSettings>
|
||||
|
||||
TextScroller::TextScroller (QWidget *parent, uint w,
|
||||
uint h, const QString &name) :
|
||||
QWidget (parent)
|
||||
|
|
|
@ -13,12 +13,11 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainDisplay.h"
|
||||
#include "mainwindow.h"
|
||||
#include "maindisplay.h"
|
||||
#include "TimeDisplay.h"
|
||||
#include "NumberDisplay.h"
|
||||
|
||||
#include "MainWindow.h"
|
||||
|
||||
#include <QPen>
|
||||
|
||||
TimeDisplay::TimeDisplay (QWidget *parent, int time) : PixWidget (parent)
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "mainwindow.h"
|
||||
#include "TitleBar.h"
|
||||
#include "Display.h"
|
||||
#include "SkinChooser.h"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "mainwindow.h"
|
||||
#include "TitleBar.h"
|
||||
#include "equalizer.h"
|
||||
#include "Button.h"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "mainwindow.h"
|
||||
#include "playlist.h"
|
||||
#include "equalizer.h"
|
||||
#include "Skin.h"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "ClutterBar.h"
|
||||
#include "clutterbar.h"
|
||||
#include "Skin.h"
|
||||
|
||||
ClutterBar::ClutterBar (QWidget *parent) : PixWidget (parent)
|
|
@ -15,8 +15,8 @@
|
|||
|
||||
#include <xmmsclient/xmmsclient++.h>
|
||||
#include "XMMSHandler.h"
|
||||
#include "MainDisplay.h"
|
||||
#include "MainWindow.h"
|
||||
#include "maindisplay.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include "TitleBar.h"
|
||||
#include "Button.h"
|
||||
|
@ -24,12 +24,12 @@
|
|||
#include "NumberDisplay.h"
|
||||
#include "TimeDisplay.h"
|
||||
#include "SmallNumberDisplay.h"
|
||||
#include "StereoMono.h"
|
||||
#include "stereomono.h"
|
||||
#include "PosBar.h"
|
||||
#include "PlayStatus.h"
|
||||
#include "VolumeSlider.h"
|
||||
#include "playlist.h"
|
||||
#include "ClutterBar.h"
|
||||
#include "clutterbar.h"
|
||||
|
||||
#include <QFileDialog>
|
||||
#include <QSettings>
|
|
@ -13,15 +13,15 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
#ifdef HAVE_SERVERBROWSER
|
||||
#include "ServerBrowser.h"
|
||||
#endif
|
||||
|
||||
#include "playlist.h"
|
||||
#include "MainDisplay.h"
|
||||
#include "ShadedDisplay.h"
|
||||
#include "maindisplay.h"
|
||||
#include "shadeddisplay.h"
|
||||
#include "equalizer.h"
|
||||
|
||||
#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 "XMMSHandler.h"
|
||||
|
||||
#include "ShadedDisplay.h"
|
||||
#include "shadeddisplay.h"
|
||||
#include "TitleBar.h"
|
||||
#include "Button.h"
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "StereoMono.h"
|
||||
#include "stereomono.h"
|
||||
#include "Skin.h"
|
||||
|
||||
StereoMono::StereoMono (QWidget *parent) : PixWidget (parent)
|
|
@ -14,7 +14,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "mainwindow.h"
|
||||
#include "BrowseDialog.h"
|
||||
#include "playlist.h"
|
||||
#include "playlistview.h"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "MainWindow.h"
|
||||
// #include "mainwindow.h"
|
||||
#include "settingsdialog.h"
|
||||
|
||||
#include <QSettings>
|
||||
|
|
11
src/src.pri
11
src/src.pri
|
@ -1,12 +1,11 @@
|
|||
include($$PWD/widgets/widgets.pri)
|
||||
include($$PWD/mainwindow/mainwindow.pri)
|
||||
include($$PWD/playlist/playlist.pri)
|
||||
include($$PWD/equalizer/equalizer.pri)
|
||||
|
||||
HEADERS += PixWidget.h \
|
||||
Skin.h \
|
||||
MainWindow.h \
|
||||
Display.h \
|
||||
MainDisplay.h \
|
||||
TitleBar.h \
|
||||
Button.h \
|
||||
TextBar.h \
|
||||
|
@ -14,14 +13,11 @@ HEADERS += PixWidget.h \
|
|||
TimeDisplay.h \
|
||||
XMMSHandler.h \
|
||||
SmallNumberDisplay.h \
|
||||
StereoMono.h \
|
||||
PosBar.h \
|
||||
PlayStatus.h \
|
||||
ShadedDisplay.h \
|
||||
SkinChooser.h \
|
||||
settingsdialog.h \
|
||||
VolumeSlider.h \
|
||||
ClutterBar.h \
|
||||
FileDialog.h \
|
||||
BrowseModel.h \
|
||||
BrowseDialog.h
|
||||
|
@ -29,9 +25,7 @@ HEADERS += PixWidget.h \
|
|||
SOURCES += main.cpp \
|
||||
PixWidget.cpp \
|
||||
Skin.cpp \
|
||||
MainWindow.cpp \
|
||||
Display.cpp \
|
||||
MainDisplay.cpp \
|
||||
TitleBar.cpp \
|
||||
Button.cpp \
|
||||
TextBar.cpp \
|
||||
|
@ -39,14 +33,11 @@ SOURCES += main.cpp \
|
|||
TimeDisplay.cpp \
|
||||
XMMSHandler.cpp \
|
||||
SmallNumberDisplay.cpp \
|
||||
StereoMono.cpp \
|
||||
PosBar.cpp \
|
||||
PlayStatus.cpp \
|
||||
ShadedDisplay.cpp \
|
||||
SkinChooser.cpp \
|
||||
settingsdialog.cpp \
|
||||
VolumeSlider.cpp \
|
||||
ClutterBar.cpp \
|
||||
FileDialog.cpp \
|
||||
BrowseModel.cpp \
|
||||
BrowseDialog.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue