VR-Forces Developer's Guide
 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 
42  virtual ~DtDiGuyRandomAppearancesDialog() override;
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  virtual void done(int canceled) override;
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 };
Ui::randomAppearanceDlg myUiImpl
Definition: diGuyRandomAppearancesDialog.h:91
This is a Qt widget for doing type map filtering on DI-Guy characters (narrowing down the list of ava...
Definition: diGuyAppearanceFilterWidget.h:49
QGroupBox * myDIGuyFilters
Definition: diGuyRandomAppearancesDialog.h:92
makVrv::DtDe & myDe
Definition: diGuyRandomAppearancesDialog.h:79
makVrf::DtDIGuyAppearanceFilterWidget * myFilterWidget
For DI-Guy type map filtering. The user can limit the number of appearances displayed by specifying o...
Definition: diGuyRandomAppearancesDialog.h:89
Definition: asyncJobServer.h:38
QHash< QString, bool > * myAppearancesMap
Definition: diGuyRandomAppearancesDialog.h:77
DtString myCharacterType
Definition: diGuyRandomAppearancesDialog.h:76
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
Definition: diGuyRandomAppearancesDialog.h:32
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)