ff7tk  0.02
Toolkit for making FF7 Tools
MenuListWidget.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 #ifndef MENULISTWIDGET_H
17 #define MENULISTWIDGET_H
18 
19 #include "qglobal.h"
20 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
21  #include <QtWidgets>
22 #else
23  #include <QtGui>
24 #endif
25 #include "DoubleCheckBox.h"
29 class MenuListWidget : public QWidget
30 {
31  Q_OBJECT
32 public:
37  explicit MenuListWidget(qreal Scale=1, QWidget * parent=0);
38 
39 signals:
44  void visibleToggled(int row,bool checked);
45 
50  void lockedToggled(int row,bool checked);
51 public slots:
57  void setChecked(int row,int box,bool checked);
58 private slots:
59  void cb_item_one_toggled(bool checked);
60  void cb_item_two_toggled(bool checked);
61  void cb_magic_one_toggled(bool checked);
62  void cb_magic_two_toggled(bool checked);
63  void cb_materia_one_toggled(bool checked);
64  void cb_materia_two_toggled(bool checked);
65  void cb_equip_one_toggled(bool checked);
66  void cb_equip_two_toggled(bool checked);
67  void cb_status_one_toggled(bool checked);
68  void cb_status_two_toggled(bool checked);
69  void cb_order_one_toggled(bool checked);
70  void cb_order_two_toggled(bool checked);
71  void cb_limit_one_toggled(bool checked);
72  void cb_limit_two_toggled(bool checked);
73  void cb_config_one_toggled(bool checked);
74  void cb_config_two_toggled(bool checked);
75  void cb_phs_one_toggled(bool checked);
76  void cb_phs_two_toggled(bool checked);
77  void cb_save_one_toggled(bool checked);
78  void cb_save_two_toggled(bool checked);
79 private:
90  QLabel *lbl_title;
91  void init_display();
92  void connectAll();
93  void disconnectAll();
94  qreal scale;
95 };
96 
97 #endif // MENULISTWIDGET_H
void cb_status_one_toggled(bool checked)
void cb_equip_one_toggled(bool checked)
void visibleToggled(int row, bool checked)
SIGNAL: The visible box has changed its checked state.
QLabel * lbl_title
void cb_phs_one_toggled(bool checked)
void cb_config_two_toggled(bool checked)
void lockedToggled(int row, bool checked)
SIGNAL: The locked box has changed its checked state.
MenuListWidget(qreal Scale=1, QWidget *parent=0)
void cb_magic_two_toggled(bool checked)
void cb_config_one_toggled(bool checked)
void cb_materia_two_toggled(bool checked)
void cb_status_two_toggled(bool checked)
DoubleCheckBox * cb_limit
void setChecked(int row, int box, bool checked)
SLOT: set the check state for an item.
void cb_limit_one_toggled(bool checked)
void cb_magic_one_toggled(bool checked)
void cb_save_two_toggled(bool checked)
DoubleCheckBox * cb_order
void cb_order_two_toggled(bool checked)
DoubleCheckBox * cb_config
void cb_item_one_toggled(bool checked)
void cb_save_one_toggled(bool checked)
DoubleCheckBox * cb_materia
easily manage the menus in Final Fantasy 7
void cb_limit_two_toggled(bool checked)
void cb_phs_two_toggled(bool checked)
DoubleCheckBox * cb_magic
DoubleCheckBox * cb_status
void cb_materia_one_toggled(bool checked)
void cb_item_two_toggled(bool checked)
DoubleCheckBox * cb_item
void cb_equip_two_toggled(bool checked)
void cb_order_one_toggled(bool checked)
DoubleCheckBox * cb_equip
Box
Acces to Visible and Locked boxes without knowing their index.
DoubleCheckBox * cb_save
one text two checkable boxes
DoubleCheckBox * cb_phs