VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/DtTaskPatrolBetweenDialog.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtTaskPatrolBetweenDialog.h,v $ $Revision: 1.3 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00013 
00014 #pragma once
00015 
00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00017 #include <vrfGuiCoreQt/DtBaseFilteredListViewTaskSetDialog.h>
00018 
00019 class QFrame;
00020 
00021 namespace makVrf
00022 {
00023    class DT_DLL_VRFGUICOREQT DtTaskPatrolBetweenDialog : public DtBaseFilteredListViewTaskSetDialog
00024    {
00025       Q_OBJECT
00026    public:
00027       //CTOR
00028       DtTaskPatrolBetweenDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
00029 
00030       //DTOR
00031       virtual ~DtTaskPatrolBetweenDialog();
00032 
00033       DtVrfFilteredListView* patrolToView()
00034       {
00035          return myPatrolToView;
00036       }
00037 
00038       const DtVrfFilteredListView* patrolToView() const
00039       {
00040          return myPatrolToView;
00041       }
00042 
00043    protected:
00044       virtual QWidget* contents(const std::vector<makVrv::DtSimEntry*>& data);
00045       virtual std::vector<DtVrfObjectListViewItem::DtVrfObjectState> selectedObjects() const;
00046 
00047       virtual void sendRequest();
00048 
00049       virtual bool valid() const;
00050 
00051    protected:
00052       virtual void setupStatement(const DtSimStatement*);
00053       virtual void initializeSelectionFilters();
00054       virtual void slot_onNameChanged(const QString& s);
00055 
00056       virtual void setPatrolToName(const QString&);
00057       virtual QString patrolToName() const;
00058 
00059       virtual void initializeSelectionFilters(DtVrfFilteredListView*);
00060       virtual void selectObject(const DtVrfObjectListViewItem::DtVrfObjectState& obj);
00061 
00062    public:
00063       QFrame*                 mySeparator;
00064       DtVrfFilteredListView*  myPatrolToView;
00065       QLabel* myPoint1Label;
00066       QLabel* myPoint2Label;
00067    };
00068 
00069    class DT_DLL_VRFGUICOREQT DtTaskPatrolBetweenDialogCreator : public DtVrfTaskSetDialogCreator
00070    {
00071    public:
00072       virtual DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent);
00073       bool supportsType(int, const DtSimStatement*) const;
00074    };
00075 }

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)