#include <QDomElement>
#include <KDebug>
+#include <kdeversion.h>
+
+#if KDE_IS_VERSION(4,7,0)
+#include <KMessageWidget>
+#endif
#include "ui_dvdwizardmenu_ui.h"
{
public:
- DvdScene(QObject * parent = 0): QGraphicsScene(parent) {}
+ DvdScene(QObject * parent = 0): QGraphicsScene(parent) {
+ m_width = 0; m_height = 0;
+ }
void setProfile(int width, int height) {
m_width = width;
m_height = height;
virtual ~DvdWizardMenu();
virtual bool isComplete() const;
bool createMenu() const;
- void createBackgroundImage(const QString &img1);
+ void createBackgroundImage(const QString &overlayMenu, const QString &img1);
void createButtonImages(const QString &img1, const QString &img2, const QString &img3);
void setTargets(QStringList list, QStringList targetlist);
QMap <QString, QRect> buttonsInfo();
void changeProfile(bool isPal);
QDomElement toXml() const;
void loadXml(QDomElement xml);
+ void prepareUnderLines();
+ void resetUnderLines();
private:
Ui::DvdWizardMenu_UI m_view;
QGraphicsRectItem *m_safeRect;
int m_width;
int m_height;
+ QSize m_finalSize;
+#if KDE_IS_VERSION(4,7,0)
+ KMessageWidget *m_menuMessage;
+#endif
private slots:
void buildButton();
void deleteButton();
void updateColor();
void updateColor(QColor c);
+ void updateUnderlineColor(QColor c);
void setBackToMenu(bool backToMenu);
void slotZoom();
void slotUnZoom();
+ void slotEnableShadows(int enable);
};
#endif