NCBI C++ ToolKit
wx_cross_aln_demo_app.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: wx_cross_aln_demo_app.cpp 34649 2016-02-01 21:08:55Z katargir $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Authors: Vlad Lebedev
27  *
28  * File Description:
29  *
30  */
31 
32 
33 #include <ncbi_pch.hpp>
34 #include <corelib/ncbistd.hpp>
35 #include <corelib/ncbitime.hpp>
36 
37 #include "cross_aln_demo_dlg.hpp"
38 
40 
41 
43 
44 
45 ///////////////////////////////////////////////////////////////////////////////
46 /// Derive our application class from CwxNCBIApp and use it together with
47 /// standard CNCBIwxApplication.
48 
50 {
51 protected:
52  // we are overriding this function to create our main frame window
53  virtual bool x_CreateGUI();
54 
55 protected:
57 };
58 
59 
60 // Declare wxWidgets application class
61 // this will allow CNCBIwxApplication to instantiate our class
62 DECLARE_APP(ncbi::CCrossAlnDemoApp)
63 IMPLEMENT_APP_NO_MAIN(ncbi::CCrossAlnDemoApp)
64 IMPLEMENT_WX_THEME_SUPPORT
65 
66 
68 {
70  m_Dlg->Show();
71  return true;
72 }
73 
74 
76 
77 /////////////////////////////////////////////////////////////////////////////
78 // main entry point
79 
80 int NcbiSys_main(int argc, ncbi::TXChar* argv[])
81 {
82  // create standard NCBI wxWidgets application
83  ncbi::CNCBIwxApplication ncbi_app("Cross Alignment Widget Demo");
84 
85  // Execute main application function
86  return ncbi_app.AppMain(argc, argv);
87 }
Derive our application class from CwxNCBIApp and use it together with standard CNCBIwxApplication.
CCrossAlnDemoDlg * m_Dlg
virtual bool x_CreateGUI()
create main application window and initialize associated objects return true if successful
CwxNCBIApp - this class should be used in NCBI applications instead of wxApp it provides polling supp...
Definition: wx_app.hpp:80
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define NULL
Definition: ncbistd.hpp:225
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
char TXChar
Definition: ncbistr.hpp:172
Defines: CTimeFormat - storage class for time format.
int NcbiSys_main(int argc, ncbi::TXChar *argv[])
Modified on Tue May 28 05:53:00 2024 by modify_doxy.py rev. 669887