Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqNldTrol.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------
00002 //
00003 // File:    TxqNldTrol.h
00004 //
00005 // Purpose: Interface definition of a window to control the NLD model.
00006 //
00007 // Version: $Id: TxqNldTrol.h,v 1.7 2002/04/09 21:13:39 kgl Exp $
00008 //
00009 // Copyright (c) 2000 by Tech-X Corporation.  All rights reserved.
00010 //
00011 // Author:  Kelly G. Luetkemeyer
00012 //
00013 //--------------------------------------------------------------------
00014 
00015 #ifndef TXQ_NLD_TROL_H
00016 #define TXQ_NLD_TROL_H
00017 
00018 // Txq includes
00019 #include <TxqConfigFrame.h>
00020 #include <TxqSosWsTrol.h>
00021 #define TXQ_NLD_START_EVENT             (QEvent::User + 110)
00022 #define TXQ_NLD_START_EVENT_FINISHED    (QEvent::User + 115)
00023 
00036 class TxqNldTrol : public TxqConfigFrame
00037 {
00038   Q_OBJECT
00039 
00040 public:
00041 
00053   TxqNldTrol(TxNldIfc*a, QWidget* parent=0, const char *nm=0, WFlags f = WType_TopLevel);
00054 
00058   virtual ~TxqNldTrol();
00059 
00071   void setViewMenuItems( vector<TxAttributeSet*> menuItems, 
00072                          vector<TxAttributeSet*> dataAttribs);
00073 
00078   void setAdaptor(TxNldIfc *nldAdptPtr); 
00079 
00083   virtual void postStartModel();
00084 
00089   void customEvent( QCustomEvent *e );
00090 
00091 
00092 public slots:
00093 
00097   void saveSystemParams();
00098 
00102   virtual void surfaceSection();
00103 
00104 protected slots:
00105 
00110   void resetMenuItems();
00111 
00115   void editMenuAboutToShow();
00116 
00120   void viewMenuAboutToShow();
00121 
00125   void paramsMenuAboutToShow();
00126 
00127 signals:
00128 
00129 protected:
00130 
00134   virtual void start();
00135 
00140   virtual void connectSignals();
00141 
00145   void addEditMenuItems();
00146 
00150   void addMenuItems();
00151 
00155   TxNldIfc *nldAdaptor;
00156 
00161   bool editMenuShown;
00162 
00167   bool viewMenuShown;
00168 
00173   bool paramsMenuShown;
00174 
00175 
00176 public slots:
00177 
00184   virtual void updateViewAttribsSlot(TxAttributeSet* window, TxAttributeSet *data);
00185 
00190   virtual void updateModelAttribSlot(TxAttributeSet* attrib);
00191 
00192 
00193 private:
00194 
00198   TxAttributeSet *sosAttrib;
00199 
00203   TxqNldTrol();
00204 
00205 
00206 };
00207 
00208 
00209 #endif
Copyright Tech-X Corporation, all rights reserved.