testtl.cpp
来自「ncbi源码」· C++ 代码 · 共 142 行
CPP
142 行
/* * =========================================================================== * PRODUCTION $Log: testtl.cpp,v $ * PRODUCTION Revision 1000.1 2004/06/01 21:14:33 gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4 * PRODUCTION * =========================================================================== *//* $Id: testtl.cpp,v 1000.1 2004/06/01 21:14:33 gouriano Exp $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under the * terms of the United States Copyright Act. It was written as part of * the author's official duties as a United States Government employee and * thus cannot be copyrighted. This software/database is freely available * to the public for use. The National Library of Medicine and the U.S. * Government have not placed any restriction on its use or reproduction. * * Although all reasonable efforts have been taken to ensure the accuracy * and reliability of the software and data, the NLM and the U.S. * Government do not and cannot warrant the performance or results that * may be obtained by using this software or data. The NLM and the U.S. * Government disclaim all warranties, express or implied, including * warranties of performance, merchantability or fitness for any particular * purpose. * * Please cite the author in any work or product based on this material. * * =========================================================================== * * Authors: Mike DiCuccio * * File Description: * CCTestTL -- test MDI window */#include <ncbi_pch.hpp>#include <FL/Fl_Box.H>#include <gui/widgets/toplevel/child.hpp>#include "testtl.hpp"#include "testchild.hpp"BEGIN_NCBI_SCOPE// We include the generated _.cpp file here. This avoids a nasty bug in some// versions of gcc in which inline functions are not intantiated.#include "testtl_.cpp"CTestTL::~CTestTL(){ NON_CONST_ITERATE (vector<CTestChild*>, iter, m_Children) { delete *iter; }}void CTestTL::x_PostConstruction(){ m_TopLevel->resizable(NULL);}void CTestTL::Show(int argc, char **argv){ m_MainWin->show(argc, argv);}bool CTestTL::Shown() const{ if (m_MainWin.get()) { return m_MainWin->shown(); } return false;}void CTestTL::x_OnExit(){ if (m_MainWin.get()) { m_MainWin->hide(); }}void CTestTL::x_OnNewChild(){ CTestChild* child = new CTestChild(); m_Children.push_back(child); m_TopLevel->AddChild(child->m_Child); m_TopLevel->redraw();}void CTestTL::x_OnDeleteCurrent(){}void CTestTL::x_OnCascade(){ m_TopLevel->Cascade();}void CTestTL::x_OnTile(){ m_TopLevel->Tile();}END_NCBI_SCOPE/* * =========================================================================== * $Log: testtl.cpp,v $ * Revision 1000.1 2004/06/01 21:14:33 gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4 * * Revision 1.4 2004/05/21 22:27:56 gorelenk * Added PCH ncbi_pch.hpp * * Revision 1.3 2003/03/17 14:55:42 dicuccio * Lots of clean-up. Fixed memory leaks in test program; added more explicit * destruction pathway to support integration into Genome Workbench. Added * explicit calls to cascade / tile widgets in a toplevel workspace. * * Revision 1.2 2003/03/07 17:49:26 dicuccio * Small clean-ups. Added description for each class. * * Revision 1.1 2003/03/07 17:36:09 dicuccio * Initial revision * * =========================================================================== */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?