pnlngspicetr.hpp
来自「gspiceui电子CAD仿真程序.用于电路参数模拟仿真」· HPP 代码 · 共 104 行
HPP
104 行
//*****************************************************************************// PnlNgSpiceTR.hpp *// ------------------ *// Description : This class derives from the Analysis Panel base class and *// provides a GUI for a user to configure a Transient Analysis *// for NG-Spice electronic circuit simulator. *// Started : 05/08/2004 *// Last Update : 14/07/2005 *// Copyright : (C) 2004 by MSWaters *// Email : M.Waters@bom.gov.au *//*****************************************************************************//*****************************************************************************// *// This program is free software; you can redistribute it and/or modify *// it under the terms of the GNU General Public License as published by *// the Free Software Foundation; either version 2 of the License, or *// (at your option) any later version. *// *//*****************************************************************************#ifndef PNLNGSPICETR_HPP#define PNLNGSPICETR_HPP// System Includes#include <cfloat>// wxWidgets Library Includes// Application Includes#include "PnlAnaBase.hpp"#include "DlgSrcCfg.hpp"// Local Constant Declarations//*****************************************************************************class PnlNgSpiceTR : public PnlAnaBase{ public: // Enumerated type for specifying the initial conditions enum eInitCType { eINITC_COLD, eINITC_WARM, eINITC_UICS, eINITC_FST = eINITC_COLD, eINITC_LST = eINITC_UICS }; private: // AC voltage sweep settings wxRadioBox m_oRbxInitC; // Generator configuration wxButton m_oBtnSetup; DlgSrcCfg m_oDlgSrcCfg; void Create( void ); void InitSrcDlg( void ); bool bSetInitC( eInitCType eInitC );public: PnlNgSpiceTR( wxWindow * poWin ); ~PnlNgSpiceTR( ); bool bClear( void ); bool bLoad ( Simulation & roSim ); bool bReload( Simulation & roSim ); bool bSave ( Simulation & roSim ); // Event handlers void OnChoSrcCpnt( wxCommandEvent & roEvtCmd ); void OnBtnSetup ( wxCommandEvent & roEvtCmd ); // In order to be able to react to a menu command, it must be given a // unique identifier such as a const or an enum. enum ePnlItemID { ID_BTN_SETUP = PnlAnaBase::ID_LST+1, ID_UNUSED, ID_FST = ID_BTN_SETUP, ID_LST = ID_BTN_SETUP }; // Leave this as the last line as private access is envoked by macro DECLARE_EVENT_TABLE( )};//*****************************************************************************#endif // PNLNGSPICETR_HPP
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?