PSQt/include/PSQtGUIMain.h

Go to the documentation of this file.
00001 #ifndef PSQTGUIMAIN_H
00002 #define PSQTGUIMAIN_H
00003 
00004 //#include <QVBox>
00005 //#include <QWidget>
00006 //#include <QLabel>
00007 //#include <QSlider>
00008 //#include <QPushButton>
00009 
00010 #include <Qt>
00011 #include <QtGui>
00012 #include <QtCore>
00013 
00014 namespace PSQt {
00015 
00016 //--------------------------
00017 
00018 /**
00019  *  @ingroup PSQt
00020  * 
00021  *  @brief Test widget, not used in this project.
00022  * 
00023  *  @code
00024  *  @endcode
00025  *
00026  *  This software was developed for the LCLS project.  If you use all or 
00027  *  part of it, please give an appropriate acknowledgment.
00028  *
00029  *  @see 
00030  *
00031  *  @version $Id: PSQtGUIMain.h 9841 2015-03-26 18:35:44Z dubrovin@SLAC.STANFORD.EDU $
00032  *
00033  *  @author Mikhail Dubrovin
00034  */
00035 
00036 //--------------------------
00037 
00038 class PSQtGUIMain : public QWidget
00039 {
00040  Q_OBJECT // macro is needed for connection of signals and slots
00041 
00042  public:
00043     PSQtGUIMain( QWidget *parent = 0 );
00044 
00045     void setFrame() ;
00046     void showTips() ;
00047 
00048     void resizeEvent(QResizeEvent *event = 0) ;
00049     void closeEvent (QCloseEvent  *event = 0) ;
00050 
00051     bool fileExists(std::string fname) ;
00052 
00053 
00054  public slots:
00055 
00056     void onButStart() ;
00057     void onButStop() ;
00058     void onButSave() ;
00059     void onButExit() ;
00060     void onButSelectXtcFile() ;
00061     void onButSelectCfgFile() ;
00062     void onEditXtcFileName() ;
00063     void onEditCfgFileName() ;
00064 
00065  private:
00066 
00067     QFrame*      m_frame;
00068 
00069     //QLabel*      m_lab_fname;
00070     QLineEdit*   m_edi_fncfg;
00071     QLineEdit*   m_edi_fnxtc;
00072     QPushButton* m_but_fncfg;
00073     QPushButton* m_but_fnxtc;
00074     QPushButton* m_but_start;
00075     QPushButton* m_but_stop;
00076     QPushButton* m_but_save;
00077     QPushButton* m_but_exit;
00078 
00079 };
00080 
00081 } // namespace PSQt
00082 
00083 #endif // PSQTGUIMAIN_H

Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7