VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/DtBaseComboTaskSetDialog.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtBaseComboTaskSetDialog.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00013 
00014 #pragma once
00015 
00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00017 #include <vrfGuiCoreQt/DtBaseTaskSetDialogInterface.h>
00018 
00019 #include <QtCore/QVariant>
00020 
00021 class QBoxLayout;
00022 class QComboBox;
00023 class QLabel;
00024 
00025 namespace makVrf
00026 {
00027    class DT_DLL_VRFGUICOREQT DtBaseComboTaskSetDialog : public DtBaseTaskSetDialogInterface
00028    {
00029       Q_OBJECT
00030 
00031    public:
00032       //CTOR
00033       DtBaseComboTaskSetDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
00034 
00035       //DTOR
00036       virtual ~DtBaseComboTaskSetDialog();
00037 
00038       virtual void setSelectedIndex(int);
00039       virtual int selectedIndex() const;
00040 
00041       virtual void setSelectedText(const QString&);
00042       virtual QString selectedText() const;
00043 
00044       virtual QVariant itemData(int iIndex) const;
00045       virtual QVariant selectedItemData() const;
00046 
00047       virtual void addItem(const QString&, const QVariant& data = QVariant());
00048       virtual void removeItem(const QString&);
00049 
00051       virtual void clear();
00052 
00053    protected:
00054       virtual QWidget* contents(const std::vector<makVrv::DtSimEntry*>& data);
00055       virtual QBoxLayout* createMainLayout();
00056 
00057    protected slots:
00058       virtual void onComboChanged(const QString&);
00059 
00060    protected:
00061 
00062       virtual void comboChanged(const QString&);
00063 
00064    public:
00065       QWidget*       myCanvas;
00066       QBoxLayout*    myCanvasLayout;
00067       QBoxLayout*    myComboLayout;
00068       QComboBox*     myCombo;
00069       QLabel*        myLabel;
00070    };
00071 }

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)