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.
38 lines
529 B
38 lines
529 B
#ifndef EDITOR_H_INCLUDED
|
|
#define EDITOR_H_INCLUDED
|
|
|
|
#include <qwidget.h>
|
|
|
|
#include "game.h"
|
|
|
|
class KListBox;
|
|
class QHBoxLayout;
|
|
class QListBoxItem;
|
|
class Config;
|
|
|
|
class Editor : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Editor(ObjectList *list, QWidget * = 0, const char * = 0);
|
|
|
|
signals:
|
|
void changed();
|
|
void addNewItem(Object *);
|
|
|
|
public slots:
|
|
void setItem(CanvasItem *);
|
|
|
|
private slots:
|
|
void listboxExecuted(QListBoxItem *);
|
|
|
|
private:
|
|
ObjectList *list;
|
|
QHBoxLayout *hlayout;
|
|
KListBox *listbox;
|
|
Config *config;
|
|
};
|
|
|
|
#endif
|