![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: DtPlanListBoxItem.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #pragma once 00013 00014 #include <vrfGuiCoreQt/vrfGuiCoreQt.h> 00015 00016 #include <vrfplan/stmtIndex.h> 00017 #include <vlutil/vlString.h> 00018 00019 #include <QtGui/QImage> 00020 #include <QtGui/QTreeWidget> 00021 00022 namespace makVrf 00023 { 00024 class DT_DLL_VRFGUICOREQT DtPlanListBoxItem : public QTreeWidgetItem 00025 { 00026 public: 00027 DtPlanListBoxItem(const QString & text = QString::null, bool showCurrentAsArrow = false); 00028 DtPlanListBoxItem(const DtStmtIndex& index, 00029 const QString& indent, bool showCurrentAsArrow = false); 00030 virtual ~DtPlanListBoxItem(); 00031 00032 virtual void setStatementIndex(const DtStmtIndex index); 00033 virtual const DtStmtIndex& statementIndex() const; 00034 00035 virtual void setIndent(const QString& indent); 00036 virtual const QString& indent() const; 00037 00038 virtual void setBlockIndex(int index); 00039 virtual int blockIndex() const; 00040 00041 virtual void setPlanText(const QString&); 00042 00043 QTreeWidgetItem* prev(); 00044 00047 virtual void setCurrent(bool); 00048 bool current() const; 00049 00051 virtual QVariant data(int col, int role) const; 00052 00054 virtual const QImage& arrowIcon() const; 00055 00056 virtual QString stringRep() const; 00057 00058 protected: 00059 DtStmtIndex myStatementIndex; 00060 QString myIndent; 00061 int myBlockIndex; 00062 bool myCurrent; 00063 bool myShowCurrentAsArrow; 00064 00065 static QImage theCurrentArrow; 00066 }; 00067 00068 inline bool DtPlanListBoxItem::current() const 00069 { 00070 return myCurrent; 00071 } 00072 }