Change playlist to use Esperanza's playlistmodel
This commit is contained in:
parent
85cf6a8d1c
commit
503385309b
96 changed files with 2010 additions and 412 deletions
68
src/MainWindow.h
Normal file
68
src/MainWindow.h
Normal file
|
@ -0,0 +1,68 @@
|
|||
#ifndef __MAINWINDOW_H__
|
||||
#define __MAINWINDOW_H__
|
||||
|
||||
class MainWindow;
|
||||
|
||||
#include "XMMSHandler.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QPixmap>
|
||||
#include <QPainter>
|
||||
#include <QWidget>
|
||||
#include <QHash>
|
||||
#include <QSettings>
|
||||
|
||||
#include "xmmsqt4.h"
|
||||
|
||||
/*
|
||||
#include "Skin.h"
|
||||
#include "MainDisplay.h"
|
||||
#include "ShadedDisplay.h"
|
||||
#include "Playlist.h"
|
||||
*/
|
||||
|
||||
class XmmsQT4;
|
||||
class Skin;
|
||||
class MainDisplay;
|
||||
class ShadedDisplay;
|
||||
class PlaylistWindow;
|
||||
class EqualizerWindow;
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MainWindow (QWidget *parent);
|
||||
~MainWindow (void);
|
||||
|
||||
MainDisplay *getMD () { return m_display; }
|
||||
ShadedDisplay *getSD () { return m_shaded; }
|
||||
PlaylistWindow *getPL () { return m_playlistwin; }
|
||||
|
||||
void setPL (PlaylistWindow *p) { m_playlistwin = p; }
|
||||
void setEQ (EqualizerWindow *e) { m_equalizer = e; }
|
||||
|
||||
void raisePL (void);
|
||||
void moveEvent (QMoveEvent *event);
|
||||
|
||||
void togglePL (bool UpdateButton);
|
||||
void toggleEQ (bool UpdateButton);
|
||||
bool isTimemodeReverse(void) { QSettings s; return s.value("MainWindow/timemodereverse").toBool(); }
|
||||
void setTimemodeReverse(bool b) { QSettings s; return s.setValue("MainWindow/timemodereverse",b); }
|
||||
|
||||
public slots:
|
||||
void switchDisplay ();
|
||||
|
||||
private:
|
||||
bool isShaded (void) { QSettings s; return s.value("MainWindow/shaded").toBool(); }
|
||||
void setShaded (bool b) { QSettings s; return s.setValue("MainWindow/shaded", b); }
|
||||
MainDisplay *m_display;
|
||||
ShadedDisplay *m_shaded;
|
||||
PlaylistWindow *m_playlistwin;
|
||||
EqualizerWindow *m_equalizer;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue