VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
entityEditorImpl
categoriesEditor.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: categoriesEditor.h,v $ $Revision: 1.1 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef DTCATEGORIESEDITOR_H_
13
#define DTCATEGORIESEDITOR_H_
14
15
#include <QtGui/QDialog>
16
17
class
QPushButton
;
18
class
QListWidget;
19
class
DtModelSet
;
20
21
#include "
entityEditorImpl/entityEditorImplDefines.h
"
22
23
class
DT_DLL_entityeditorimpl
DtCategoriesEditor
:
public
QDialog
24
{
25
Q_OBJECT
26
27
public
:
28
DtCategoriesEditor
(
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
29
virtual
~
DtCategoriesEditor
();
30
31
virtual
void
init
(
const
DtModelSet
*);
32
virtual
bool
reworkCategories(
DtModelSet
*);
33
34
static
DtCategoriesEditor
* create(
QWidget
* p = NULL);
35
36
protected
:
37
virtual
bool
getCategoryName(QString& categoryName,
const
QString& category);
38
virtual
bool
isModifiedCategory(
const
QString&)
const
;
39
virtual
bool
isRemovedCategory(
const
QString&)
const
;
40
virtual
QString modifiedCategoryName(
const
QString&)
const
;
41
virtual
void
keyPressEvent(QKeyEvent *e);
42
virtual
bool
eventFilter(
QObject
*, QEvent*);
43
44
protected
slots:
45
virtual
void
itemSelectionChanged();
46
virtual
void
addCategory();
47
virtual
void
renameCategory();
48
virtual
void
removeCategory();
49
50
protected
:
51
QListWidget*
myCategories
;
52
QPushButton
*
myAddCategory
;
53
QPushButton
*
myRemoveCategory
;
54
QPushButton
*
myRenameCategory
;
55
};
56
57
#endif
58
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)