VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
diGuyRandomAppearancesDialog.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <vlutil/vlString.h>
13 #include <QtWidgets/QDialog>
14 #include <QtCore/QString>
15 #include <QtCore/QHash>
16 #include "ui_diGuyRandomAppearancesDlgUi.h"
17 
18 class randomAppearanceDlg;
19 class QListWidget;
20 class QGroupBox;
21 
22 namespace makVrf
23 {
24  class DtDIGuyAppearanceFilterWidget;
25 }
26 
27 namespace makVrv
28 {
29  class DtDe;
30 }
31 
33 {
34  Q_OBJECT
35 
36 public:
37 
39  DtDiGuyRandomAppearancesDialog(makVrv::DtDe& de, QWidget* parent = 0, const Qt::WindowFlags& flags = 0);
40 
43 
45  virtual bool init(QHash<QString,bool> * map, const DtString &characterType);
46 
47  void setCharacterType(const DtString &type);
48 
49  makVrf::DtDIGuyAppearanceFilterWidget *getFilterWidget();
50  void filterAppearances();
51 
52 signals:
53 
54  void update(QListWidget *);
55  void allDone();
56 
57 public slots:
58  virtual void updateSelection(QListWidgetItem *);
59  virtual void checkAll();
60  virtual void uncheckAll();
61  virtual void sendUpdate();
62  void done(int canceled);
63 
64 private:
67 
70 
71 protected:
74  void populateAppearances(const QHash<QString, bool> &oldAppearancesMap, bool checkAllIfNoneChecked);
75 
77  QHash<QString, bool> * myAppearancesMap;
78 
80 public:
81 
87 
90 
91  Ui::randomAppearanceDlg myUiImpl;
92  QGroupBox* myDIGuyFilters;
93 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)