#include <QGraphicsTextItem>
#include <QGraphicsPixmapItem>
#include <QGraphicsRectItem>
+#include <QDomElement>
#include <KDebug>
{
public:
- DvdButton(const QString & text): QGraphicsTextItem(text), m_target(0), m_command(QString("title 1")) {}
+ DvdButton(const QString & text): QGraphicsTextItem(text), m_target(0), m_command(QString("jump title 1")), m_backToMenu(false) {}
enum { Type = UserType + 1 };
void setTarget(int t, QString c) {
m_target = t;
QString command() const {
return m_command;
}
+ bool backMenu() const {
+ return m_backToMenu;
+ }
int type() const {
// Enable the use of qgraphicsitem_cast with this item.
return Type;
}
+ void setBackMenu(bool back) {
+ m_backToMenu = back;
+ }
private:
int m_target;
QString m_command;
+ bool m_backToMenu;
protected:
bool menuMovie() const;
QString menuMoviePath() const;
bool isPalMenu() const;
+ void changeProfile(bool isPal);
+ QDomElement toXml() const;
+ void loadXml(QDomElement xml);
private:
Ui::DvdWizardMenu_UI m_view;
void buildImage();
void checkBackground();
void checkBackgroundType(int ix);
- void changeProfile(int ix);
void updatePreview();
void buttonChanged();
void addButton();
void deleteButton();
void updateColor();
void updateColor(QColor c);
+ void setBackToMenu(bool backToMenu);
};
#endif