mirror of https://github.com/jhol/qtdmm.git
83 lines
2.5 KiB
C++
Executable File
83 lines
2.5 KiB
C++
Executable File
//======================================================================
|
|
// File: mainwin.h
|
|
// Author: Matthias Toussaint
|
|
// Created: Sun Sep 2 12:14:07 CEST 2001
|
|
//----------------------------------------------------------------------
|
|
// Permission to use, copy, modify, and distribute this software and its
|
|
// documentation for any purpose and without fee is hereby granted,
|
|
// provided that below copyright notice appear in all copies and that
|
|
// both that copyright notice and this permission notice appear in
|
|
// supporting documentation.
|
|
//
|
|
// This file is provided AS IS with no warranties of any kind. The
|
|
// author shall have no liability with respect to the infringement of
|
|
// copyrights, trade secrets or any patents by this file or any part
|
|
// thereof. In no event will the author be liable for any lost revenue
|
|
// or profits or other special, indirect and consequential damages.
|
|
//----------------------------------------------------------------------
|
|
// (c) 2001 Matthias Toussaint
|
|
//======================================================================
|
|
|
|
#ifndef MAINWIN_HH
|
|
#define MAINWIN_HH
|
|
|
|
#include <Q3MainWindow>
|
|
|
|
class MainWid;
|
|
class Q3Action;
|
|
class Q3ToolBar;
|
|
class QLabel;
|
|
class DisplayWid;
|
|
|
|
class MainWin : public Q3MainWindow
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
MainWin( QWidget *parent=0, const char *name=0 );
|
|
virtual ~MainWin();
|
|
|
|
void setConsoleLogging( bool );
|
|
|
|
protected slots:
|
|
void runningSLOT( bool );
|
|
void connectSLOT( bool );
|
|
void versionSLOT();
|
|
void setConnectSLOT( bool );
|
|
void toolbarVisibilitySLOT( bool, bool, bool, bool, bool );
|
|
void setToolbarVisibilitySLOT();
|
|
|
|
protected:
|
|
MainWid *m_wid;
|
|
Q3ToolBar *m_dmmTB;
|
|
Q3ToolBar *m_graphTB;
|
|
Q3ToolBar *m_fileTB;
|
|
Q3ToolBar *m_helpTB;
|
|
Q3ToolBar *m_displayTB;
|
|
DisplayWid *m_display;
|
|
Q3Action *m_connectAction;
|
|
Q3Action *m_resetAction;
|
|
Q3Action *m_startAction;
|
|
Q3Action *m_stopAction;
|
|
Q3Action *m_clearAction;
|
|
Q3Action *m_printAction;
|
|
Q3Action *m_exportAction;
|
|
Q3Action *m_importAction;
|
|
Q3Action *m_configAction;
|
|
Q3Action *m_configDmmAction;
|
|
Q3Action *m_configRecorderAction;
|
|
Q3Action *m_quitAction;
|
|
Q3Action *m_helpAction;
|
|
Q3Action *m_showTipsAction;
|
|
Q3Action *m_versionAction;
|
|
bool m_running;
|
|
QLabel *m_error;
|
|
QLabel *m_info;
|
|
|
|
void createToolBars();
|
|
void createActions();
|
|
void createMenu();
|
|
void closeEvent( QCloseEvent * );
|
|
};
|
|
|
|
#endif // MAINWIN_HH
|