VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/DtVrfAggregateSettingsPage.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtVrfAggregateSettingsPage.h,v $ $Revision: 1.4 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00013 
00014 #pragma once
00015 
00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00017 #include <vrvVrlQt/DtAggregateSettingsPage.h>
00018 
00019 #include <QtGui/QWidget>
00020 
00021 class QVBoxLayout;
00022 class QRadioButton;
00023 class QGroupBox;
00024 class QCheckBox;
00025 
00026 namespace makVrf
00027 {
00028    class DT_DLL_VRFGUICOREQT DtVrfAggregateSettingsWidgetInterface
00029    {
00030    public:
00031       virtual ~DtVrfAggregateSettingsWidgetInterface();
00032 
00033       virtual void setPublishAggregateFormationRoutes(bool) = 0;
00034       virtual void setAgreggateDisaggregateAutomatically(bool) = 0;
00035       virtual void setAggregateOnCreate(bool) = 0;
00036 
00037       boost::signal<void (bool)> signal_aggregateDisaggregateAutomaticallyChanged;
00038       boost::signal<void (bool)> signal_aggregatedInitiallyChanged;
00039       boost::signal<void (bool)> signal_publishAggregateFormationRoutesChanged;
00040    };
00041 
00042    class DT_DLL_VRFGUICOREQT DtVrfAggregateSettingsWidget : public QWidget, public DtVrfAggregateSettingsWidgetInterface
00043    {
00044       Q_OBJECT
00045 
00046    public:
00047       DtVrfAggregateSettingsWidget(makVrv::DtDe&, QWidget* parent);
00048 
00049       virtual ~DtVrfAggregateSettingsWidget();
00050 
00051    protected:
00052       void setupGui();
00053 
00054       virtual void setPublishAggregateFormationRoutes(bool);
00055       virtual void setAgreggateDisaggregateAutomatically(bool);
00056       virtual void setAggregateOnCreate(bool);
00057 
00058    protected slots:
00059       virtual void onAggregateDisaggregateAutomaticallyChanged();
00060       virtual void onAggregatedInitiallyChanged();
00061       virtual void onPublishAggregateFormationRoutesChanged();
00062 
00063    public:
00064       QVBoxLayout*   myMainLayout;
00065       
00066       QGroupBox* myDisaggregateGroupBox;
00067       QRadioButton *myAggregateDisaggregateAutomaticallyRadioButton;
00068       QRadioButton *myAggregateDisaggregateManuallyRadioButton;
00069 
00070       QGroupBox* myInitialStateGroupBox;
00071       QRadioButton *myAggregatedInitialStateRadioButton;
00072       QRadioButton *myDisaggregatedInitialStateRadioButton;
00073 
00074       QCheckBox *myPublishAggregateFormationRoutesCheckBox;
00075 
00076    protected:
00077       makVrv::DtDe& myDe;
00078    };
00079 
00080    class DT_DLL_VRFGUICOREQT DtVrfAggregateSettingsPage : public makVrv::DtAggregateSettingsPage
00081    {
00082    public:
00084       DtVrfAggregateSettingsPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags);
00085 
00087       virtual ~DtVrfAggregateSettingsPage();
00088 
00089    protected:
00091       void setupGui();
00092 
00093       virtual void activate();
00094 
00095    protected:
00097       DtVrfAggregateSettingsWidget* myVrfAggregateSettings;
00098    };
00099 
00100    typedef makVrv::DtPageCreatorTemplate<DtVrfAggregateSettingsPage>
00101       DtVrfAggregateSettingsPageCreator;
00102 }

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)