You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
984 B
47 lines
984 B
9 years ago
|
#ifndef UBBACKGROUNDPALETTE_H
|
||
|
#define UBBACKGROUNDPALETTE_H
|
||
|
|
||
|
#include "gui/UBActionPalette.h"
|
||
|
#include "core/UBApplication.h"
|
||
|
#include "board/UBBoardController.h"
|
||
|
#include "domain/UBGraphicsScene.h"
|
||
|
|
||
|
class UBBackgroundPalette : public UBActionPalette
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
|
||
|
UBBackgroundPalette(QList<QAction*> actions, QWidget* parent = 0);
|
||
|
UBBackgroundPalette(QWidget* parent = 0);
|
||
|
|
||
|
void addAction(QAction *action);
|
||
|
void setActions(QList<QAction *> actions);
|
||
|
void clearLayout();
|
||
|
|
||
|
|
||
|
public slots:
|
||
|
void showEvent(QShowEvent* event);
|
||
|
void backgroundChanged();
|
||
|
void refresh();
|
||
|
|
||
|
protected slots:
|
||
|
void sliderValueChanged(int value);
|
||
|
|
||
|
protected:
|
||
|
virtual void updateLayout();
|
||
|
void init();
|
||
|
|
||
|
|
||
|
QVBoxLayout* mVLayout;
|
||
|
QHBoxLayout* mTopLayout;
|
||
|
QHBoxLayout* mBottomLayout;
|
||
|
|
||
|
QSlider* mSlider;
|
||
|
QLabel* mSliderLabel;
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // UBBACKGROUNDPALETTE_H
|