ff7tk  0.02
Toolkit for making FF7 Tools
ItemPreview.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // copyright 2012 - 2016 Chris Rizzitello <sithlord48@gmail.com> //
3 // //
4 // This file is part of FF7tk //
5 // //
6 // FF7tk is free software: you can redistribute it and/or modify //
7 // it under the terms of the GNU General Public License as published by //
8 // the Free Software Foundation, either version 3 of the License, or //
9 // (at your option) any later version. //
10 // //
11 // FF7tk is distributed in the hope that it will be useful, //
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
14 // GNU General Public License for more details. //
15 /****************************************************************************/
16 
17 #ifndef ITEMPREVIEW_H
18 #define ITEMPREVIEW_H
19 
20 #include "qglobal.h"
21 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
22  #include <QtWidgets>
23 #else
24  #include <QtGui>
25 #endif
26 
27 //Besure to set FF7Item Path!
28 #include "../data/FF7Item.h"
29 
30 class ItemPreview : public QWidget
31 {
32 Q_OBJECT
33  public:
34  ItemPreview(QFlags<Qt::WindowType> WindowFlags=Qt::Widget,qreal Scale=1,QWidget *parent=0);
35  int id(void);//return shown id.
36  public slots:
37  void setItem(quint16);
38  void setItem(int);
39  private:
40  void setName(QString);
41  void setDesc(QString);
42  void setIcon(QPixmap);
43  void elemental_info(int);
44  void status_info(int);
45  bool eventFilter(QObject *obj, QEvent *ev);
46  QLabel *lbl_name;
47  QLabel *lbl_desc;
48  QLabel *lbl_icon;
49  QLabel *lbl_slot_1;
50  QLabel *lbl_slot_2;
51  QLabel *lbl_slot_3;
52  QLabel *lbl_slot_4;
53  QLabel *lbl_slot_5;
54  QLabel *lbl_slot_6;
55  QLabel *lbl_slot_7;
56  QLabel *lbl_slot_8;
57  QLabel *lbl_m_link_1;
58  QLabel *lbl_m_link_2;
59  QLabel *lbl_m_link_3;
60  QLabel *lbl_m_link_4;
61  QGroupBox *materia_slot_box;
62  QGroupBox *elemental_box;
63  QGroupBox *status_box;
64  QListWidget *elemental_effects;
65  QListWidget *status_effects;
67  int _id;
68  qreal scale;
69 };
70 #endif//ITEMPREVIEW_H
QLabel * lbl_m_link_1
Definition: ItemPreview.h:57
void setDesc(QString)
QGroupBox * status_box
Definition: ItemPreview.h:63
void status_info(int)
QLabel * lbl_slot_3
Definition: ItemPreview.h:51
QLabel * lbl_icon
Definition: ItemPreview.h:48
QLabel * lbl_slot_1
Definition: ItemPreview.h:49
QGroupBox * elemental_box
Definition: ItemPreview.h:62
QLabel * lbl_slot_4
Definition: ItemPreview.h:52
QLabel * lbl_slot_6
Definition: ItemPreview.h:54
QLabel * lbl_m_link_4
Definition: ItemPreview.h:60
QLabel * lbl_slot_7
Definition: ItemPreview.h:55
Class containg all kinds of info about items in FF7.
Definition: FF7Item.h:99
void setItem(quint16)
FF7Item data
Definition: ItemPreview.h:66
QLabel * lbl_desc
Definition: ItemPreview.h:47
QLabel * lbl_slot_8
Definition: ItemPreview.h:56
bool eventFilter(QObject *obj, QEvent *ev)
Definition: ItemPreview.cpp:18
QListWidget * status_effects
Definition: ItemPreview.h:65
void setName(QString)
qreal scale
Definition: ItemPreview.h:68
QListWidget * elemental_effects
Definition: ItemPreview.h:64
QLabel * lbl_slot_5
Definition: ItemPreview.h:53
QLabel * lbl_m_link_3
Definition: ItemPreview.h:59
QLabel * lbl_name
Definition: ItemPreview.h:46
QLabel * lbl_m_link_2
Definition: ItemPreview.h:58
void elemental_info(int)
QLabel * lbl_slot_2
Definition: ItemPreview.h:50
void setIcon(QPixmap)
int id(void)
ItemPreview(QFlags< Qt::WindowType > WindowFlags=Qt::Widget, qreal Scale=1, QWidget *parent=0)
Definition: ItemPreview.cpp:25
QGroupBox * materia_slot_box
Definition: ItemPreview.h:61