- added abstract class tree for gui elements. - implemented concrete gui classes that wrap the qt specific content. - implemented first DummyView which plays nice with the ViewManager. review id = 12
26 lines
425 B
C++
26 lines
425 B
C++
#ifndef QT_AREA_H
|
|
#define QT_AREA_H
|
|
|
|
#include <qwidget.h>
|
|
|
|
#include "gui/GuiArea.h"
|
|
|
|
class QtArea: public GuiArea
|
|
{
|
|
public:
|
|
QtArea();
|
|
virtual ~QtArea();
|
|
|
|
virtual void setPosition(Vec2i position);
|
|
virtual Vec2i getPosition() const;
|
|
virtual void setSize(Vec2i size);
|
|
virtual Vec2i getSize() const;
|
|
|
|
virtual void setBackgroundColor(Colori color);
|
|
|
|
private:
|
|
std::shared_ptr<QWidget> getWidget();
|
|
};
|
|
|
|
# endif // QT_AREA_H
|