76 DECLARE_APP(ncbi::CFrameworkDemoApp)
77 IMPLEMENT_APP_NO_MAIN(ncbi::CFrameworkDemoApp)
78 IMPLEMENT_WX_THEME_SUPPORT
88 static int kMaxToolThreads = 3;
89 static int kMaxToolJobs = 100;
98 LOG_POST(
Info <<
"CFrameworkDemoApp::x_CreateGUI() BEGIN");
113 LOG_POST(
Info <<
"CFrameworkDemoApp::x_CreateGUI() END");
121 LOG_POST(
Info <<
"CFrameworkDemoApp::x_DestroyGUI() BEGIN");
128 LOG_POST(
Info <<
"CFrameworkDemoApp::x_DestroyGUI() END");
160 ncbi::CNCBIwxApplication ncbi_app(
"wxWidgets demo App");
163 return ncbi_app.AppMain(argc, argv);
CAppTaskService - Application Task Service.
Derive our application class from CwxNCBIApp and use it together with standard CNCBIwxApplication.
virtual bool x_CreateGUI()
create main application window and initialize associated objects return true if successful
unique_ptr< CWorkbench > m_Workbench
virtual void x_InitAppJobDispatcher()
override this function to configure / register engines
virtual bool x_OnIdle()
called from OnIdle() and can be overridden in derived classes returns true if something was done
virtual void x_DestroyGUI()
destroy application GUI objects
virtual wxString x_GetGuiRegistryPath()
virtual void SetWorkbench(IWorkbench *workbench)
virtual void RestoreWindowLayout()
virtual void SetRegistryPath(const string &path)
static wxString ResolvePath(const wxString &path, const wxString &rel_name)
Utility function to hide the platform specifics of locating our standard directories and files.
CWorkbench - default implementation of IWorkbench.
CwxNCBIApp - this class should be used in NCBI applications instead of wxApp it provides polling supp...
virtual void x_InitAppJobDispatcher()
override this function to configure / register engines
virtual bool x_OnIdle()
called from OnIdle() and can be overridden in derived classes returns true if something was done
int NcbiSys_main(int argc, ncbi::TXChar *argv[])
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Info(CExceptionArgs_Base &args)
bool IdleCallback()
This function shall be called in the the application idle function, it polls the Task Queue and execu...
static CAppJobDispatcher & GetInstance()
bool RegisterEngine(const string &name, IAppJobEngine &engine)
Registers a new Engine, returns true if successful.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.