-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathitemattributeeditor.h
42 lines (33 loc) · 1 KB
/
itemattributeeditor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef ITEMATTRIBUTEEDITOR_H
#define ITEMATTRIBUTEEDITOR_H
#include <QDialog>
#include "ui_itemattributeeditor.h"
class TibiaHandler;
class ItemModel;
class ItemAttributeEditor : public QDialog
{
Q_OBJECT
public:
ItemAttributeEditor( QWidget *parent = 0 );
~ItemAttributeEditor( void );
void setItems( const ItemList& items );
void setOutfits( const ItemList& items );
void setEffects( const ItemList& items );
void setProjectiles( const ItemList& items );
void updateItems( void );
void setProperties( TibiaItem *item, const PropertyList& properties );
private:
ItemList items;
ItemList outfits;
ItemList effects;
ItemList projectiles;
ItemModel *itemModel;
Ui::ItemAttributeEditorClass *ui;
signals:
void changeItem( ItemFile *, TibiaItem *, PropertyList );
private slots:
void onSelectionChanged( bool );
void onButtonClicked( QAbstractButton *button );
void on_comboVersions_currentIndexChanged( int );
};
#endif // ITEMATTRIBUTEEDITOR_H