VR-Forces 4.0.4 Class Documentation
include/entityEditorImpl/categoriesEditor.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2007 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: categoriesEditor.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DTCATEGORIESEDITOR_H_
00013 #define DTCATEGORIESEDITOR_H_
00014 
00015 #include <QtGui/QDialog>
00016 
00017 class QPushButton;
00018 class QListWidget;
00019 class DtModelSet;
00020 
00021 #include "entityEditorImpl/entityEditorImplDefines.h"
00022 
00023 class DT_DLL_entityeditorimpl DtCategoriesEditor : public QDialog
00024 {
00025    Q_OBJECT
00026 
00027 public:
00028    DtCategoriesEditor(QWidget* parent, const Qt::WindowFlags& flags = 0);
00029    virtual ~DtCategoriesEditor();
00030 
00031    virtual void init(const DtModelSet*);
00032    virtual bool reworkCategories(DtModelSet*);
00033 
00034    static DtCategoriesEditor* create(QWidget* p = NULL);
00035 
00036 protected:
00037    virtual bool getCategoryName(QString& categoryName, const QString& category);
00038    virtual bool isModifiedCategory(const QString&) const;
00039    virtual bool isRemovedCategory(const QString&) const;
00040    virtual QString modifiedCategoryName(const QString&) const;
00041    virtual void keyPressEvent(QKeyEvent *e);
00042    virtual bool eventFilter(QObject*, QEvent*);
00043 
00044 protected slots:
00045    virtual void itemSelectionChanged();
00046    virtual void addCategory();
00047    virtual void renameCategory();
00048    virtual void removeCategory();
00049 
00050 protected:
00051    QListWidget* myCategories;
00052    QPushButton* myAddCategory;
00053    QPushButton* myRemoveCategory;
00054    QPushButton* myRenameCategory;
00055 };
00056 
00057 #endif
00058 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)