]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/wx-console/main.cpp
Add version strings
[bacula/bacula] / bacula / src / wx-console / main.cpp
index b0e1349cbb8f6a840b70f162eae821ed498e7692..92779b4e726e65cd0dbf7ea6e73258fa673326dc 100644 (file)
@@ -1,9 +1,10 @@
 /*
  *
- *    Bacula wx GUI application
+ *    Bacula wx-console application
  *
  *    Nicolas Boichat, April 2004
  *
+ *    Version $Id$
  */
 /*
    Copyright (C) 2004 Kern Sibbald and John Walker
 // resources
 // ----------------------------------------------------------------------------
 
-
 class MyApp : public wxApp
 {
 public:
    virtual bool OnInit();
 };
 
-IMPLEMENT_APP(MyApp)
-
 // ============================================================================
 // implementation
 // ============================================================================
 
+IMPLEMENT_APP(MyApp)
+
 // ----------------------------------------------------------------------------
 // the application class
 // ----------------------------------------------------------------------------
@@ -71,14 +71,14 @@ IMPLEMENT_APP(MyApp)
 // 'Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
-   wxbMainFrame *frame = wxbMainFrame::CreateInstance(_T("Minimal wxWindows App"),
+   wxbMainFrame *frame = wxbMainFrame::CreateInstance(_T("Bacula wx-console"),
                          wxPoint(50, 50), wxSize(780, 500));
 
    frame->Show(TRUE);
 
-   frame->StartConsoleThread();
-
-   csprint("Console started !\n");
+   frame->Print(wxString("Welcome to bacula wx-console ") << VERSION << " (" << BDATE << ")!\n", CS_DEBUG);
 
+   frame->StartConsoleThread("");
+   
    return TRUE;
 }