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

TxqEditorDlog.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------
00002 //
00003 // File:    TxqEditorDlog.h
00004 //
00005 // Purpose: This class is a QDialog which holds a TxqEditor 
00006 //           which can  edit a TxAttributeSet.
00007 //
00008 // Version: $Id: TxqEditorDlog.h,v 1.7 2002/04/05 19:05:27 kgl Exp $
00009 //
00010 // Copyright (c) 2000 by Tech-X Corporation.  All rights reserved.
00011 //
00012 // Author:  Kelly G. Luetkemeyer
00013 //
00014 //--------------------------------------------------------------------
00015 
00016 #ifndef TXQ_EDITOR_DLOG_H
00017 #define TXQ_EDITOR_DLOG_H
00018 
00019 // Qt includes
00020 #include <qvariant.h>
00021 #include <qdialog.h>
00022 #include <qlayout.h>
00023 #include <qpushbutton.h>
00024 #include <qwhatsthis.h>
00025 
00026 
00027 // Txq includes
00028 // #include "TxqEditor.h"
00029 #include "TxqEditTable.h"
00030 
00031 // txmath includes
00032 #include <TxAttributeSet.h>
00033 
00041 class TxqEditorDlog : public QDialog
00042 { 
00043     Q_OBJECT
00044 
00045 public:
00046 
00059    TxqEditorDlog( TxAttributeSet *txa, 
00060                   QWidget* parent = 0, const char* name = 0, 
00061                   bool modal = FALSE, WFlags fl = 0 );
00062 
00066    ~TxqEditorDlog();
00067 
00072    void setAttribute(TxAttributeSet *txa);
00073 
00080    void setAttributeFilter(vector<string> &filterNames);
00081 
00086    void setWindowId(int id);
00087 
00088 signals:
00092    virtual void cancelButtonPressed();
00093 
00097    virtual void revertButtonPressed();
00098 
00102    virtual void applyButtonPressed();
00103 
00108    virtual void applyButtonPressed(int);
00109 
00113    virtual void okButtonPressed();
00114 
00119   void aboutToClose(int id);
00120 
00121 
00122 public slots:
00128    void closeWindow(int id);
00129 
00130 protected slots:
00131 
00135    virtual void revertClicked();
00136 
00140    virtual void applyClicked();
00141 
00145    virtual void okClicked();
00146 
00150    virtual void cancelClicked();
00151 
00156    virtual void windowIdSlot();
00157 
00162    virtual void closeWindow();
00163 
00164 protected:
00165 
00169    QVBoxLayout* dlogLayout;
00170 
00174    QHBoxLayout* buttonLayout;
00175 
00179    // TxqEditor *editor;
00180    TxqEditTable *editor;
00181 
00185    QPushButton* buttonCancel;
00186 
00190    QPushButton* buttonRevert;
00191 
00195    QPushButton* buttonApply;
00196 
00200    QPushButton* buttonOk;
00201 
00202 private:
00203 
00208    TxAttributeSet *editAttrib;
00209 
00213    TxAttributeSet *attrib;
00214 
00218    int windowId;
00219 };
00220 
00221 #endif 
Copyright Tech-X Corporation, all rights reserved.