VR-Forces 4.1 Class Documentation
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 
22 
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;
55 };
56 
57 #endif
58 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)