//***************************************************************************** // // Erase the data storage area of flash. // //***************************************************************************** void FlashStoreErase(void) { unsigned long ulAddr; // // Inform user we are erasing // SetStatusText("ERASE", 0, "ERASING", 0); // // Loop through entire storage area and erase each page. // for(ulAddr = FLASH_STORE_START_ADDR; ulAddr < FLASH_STORE_END_ADDR; ulAddr += 0x400) { FlashErase(ulAddr); } // // Inform user the erase is done. // SetStatusText("SAVE", "ERASE", "COMPLETE", "PRESS <"); }
void wxStatusBarBase::PopStatusText(int number) { wxListString *st = GetStatusStack(number); wxCHECK_RET( st, _T("Unbalanced PushStatusText/PopStatusText") ); wxListString::compatibility_iterator top = st->GetFirst(); SetStatusText(*top->GetData(), number); delete top->GetData(); st->Erase(top); if(st->GetCount() == 0) { delete st; m_statusTextStacks[number] = 0; } }
void HypoMain::OnSound(wxCommandEvent& WXUNUSED(event)) { #ifdef HYPOSOUND wxSize boxsize; SetStatusText("Sound Box"); if(ostype == Mac) boxsize = wxSize(285, 380); else boxsize = wxSize(320, 430); mainpos = GetPosition(); soundbox = new SoundBox(mod, "Sonic Spike Analysis", wxPoint(320, 455), boxsize); toolset.AddBox(soundbox); soundbox->Show(true); #endif }
void MyFrame::OnNew( wxCommandEvent& WXUNUSED(event) ) { if (!Discard()) return; m_text->Clear(); if (!m_filename.empty()) AddToHistory( m_filename ); m_filename = wxEmptyString; #if wxUSE_STATUSBAR SetStatusText( wxEmptyString ); #endif // wxUSE_STATUSBAR }
// ----------------------------------------------------------------------------- // Called when the window is activated // ----------------------------------------------------------------------------- void MainWindow::onActivate(wxActivateEvent& e) { if (!e.GetActive() || this->IsBeingDeleted() || App::isExiting()) { e.Skip(); return; } // Get current tab if (stc_tabs_->GetPageCount()) { auto page = stc_tabs_->GetPage(stc_tabs_->GetSelection()); // If start page is selected, refresh it if (page && page->GetName() == "startpage") { createStartPage(false); SetStatusText("", 1); SetStatusText("", 2); } } e.Skip(); }
void CFindDlg::OnFindAll() { if (!UpdateData()) return; UpdateSearchHistory(); SetStatusText(LoadString(IDS_SEARCHING)); GetDlgItem(IDC_SEARCH_STATUS)->ShowWindow(SW_SHOW); GetMainFrame()->SetMessageText(AFX_IDS_IDLEMESSAGE); GetParent()->SendMessage(WM_COMMAND, ID_FIND_ALL); GetDlgItem(IDC_SEARCH_STATUS)->ShowWindow(SW_HIDE); }
bool GUI::DoRedo() { Editor* editor = GetCurrentEditor(); if(editor && editor->actionQueue->canRedo()) { editor->actionQueue->redo(); if(editor->selection.size() > 0) SetSelectionMode(); SetStatusText(wxT("Redo action")); UpdateMinimap(); root->UpdateMenubar(); root->Refresh(); return true; } return false; }
MyFrame::MyFrame(wxFrame *frame, const wxString& title) : wxFrame(frame, -1, title) { #if wxUSE_MENUS // create a menu bar wxMenuBar* mbar = new wxMenuBar(); wxMenu* fileMenu = new wxMenu(_T("")); fileMenu->Append(idMenuQuit, _("&Quit\tAlt-F4"), _("Quit the application")); mbar->Append(fileMenu, _("&File")); wxMenu* helpMenu = new wxMenu(_T("")); helpMenu->Append(idMenuAbout, _("&About\tF1"), _("Show info about this application")); mbar->Append(helpMenu, _("&Help")); SetMenuBar(mbar); #endif // wxUSE_MENUS #if wxUSE_STATUSBAR // create a status bar with some information about the used wxWidgets version CreateStatusBar(2); SetStatusText(_("Hello Code::Blocks user !"),0); SetStatusText(wxbuildinfo(short_f),1); #endif // wxUSE_STATUSBAR }
MyFrame::MyFrame(wxWindow* parent, const wxString& title) :wxFrame(parent,wxID_ANY, title) { //SetIcon(wxIcon(mondrian_xpm)); wxMenu* fileMenu = new wxMenu; wxMenu* helpMenu = new wxMenu; helpMenu->Append(wxID_ABOUT, wxT("&About...\tF1"), wxT("Show about dialog")); fileMenu->Append(wxID_EXIT, wxT("E&xit\tAlt-X"), wxT("Quit this program")); wxMenuBar* menuBar = new wxMenuBar(); menuBar->Append(fileMenu, wxT("&File")); menuBar->Append(helpMenu, wxT("&Help")); SetMenuBar(menuBar); CreateStatusBar(2); SetStatusText(wxT("Welcome to WxWidgets!")); }
/* MainWindow::onActivate * Called when the window is activated *******************************************************************/ void MainWindow::onActivate(wxActivateEvent& e) { if (!e.GetActive() || this->IsBeingDeleted()) { e.Skip(); return; } // Get current tab wxWindow* page = stc_tabs->GetPage(stc_tabs->GetSelection()); // If start page is selected, refresh it if (page && page->GetName() == "startpage") { createStartPage(false); SetStatusText("", 1); SetStatusText("", 2); } // Check open directory archives for changes on the file system panel_archivemanager->checkDirArchives(); e.Skip(); }
void WinEDA_CvpcbFrame::SetNewPkg(void) /**************************************/ /* - Affecte un module au composant selectionne - Selectionne le composant suivant */ { STORECMP * Composant; int ii, NumCmp, IsNew = 1; wxString Line; if ( BaseListeCmp == NULL ) return; NumCmp = m_ListCmp->GetSelection(); if( NumCmp < 0 ) { NumCmp = 0; m_ListCmp->SetSelection(NumCmp, TRUE); } Composant = BaseListeCmp; for ( ii = 0; Composant != NULL; Composant = Composant->Pnext, ii++ ) { if ( NumCmp == ii ) break; } if ( Composant == NULL ) return; if ( ! Composant->m_Module.IsEmpty() ) IsNew = 0; Composant->m_Module = g_CurrentPkg; Line.Printf( CMP_FORMAT ,ii+1, Composant->m_Reference.GetData(), Composant->m_Valeur.GetData(), Composant->m_Module.GetData()); modified = 1; if ( IsNew ) composants_non_affectes -= 1; m_ListCmp->SetString(NumCmp, Line); m_ListCmp->SetSelection(NumCmp, FALSE); // We activate next component: if ( NumCmp < (m_ListCmp->GetCount() - 1) ) NumCmp++; m_ListCmp->SetSelection(NumCmp, TRUE); Line.Printf( _("Components: %d (free: %d)"), nbcomp, composants_non_affectes); SetStatusText(Line,1); }
MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) : wxFrame(NULL, wxID_ANY, title, pos, size) { wxMenu *menuFile = new wxMenu; menuFile->Append(ID_Hello, "&Hello...\tCtrl-H", "Help string shown in status bar for this menu item"); menuFile->AppendSeparator(); menuFile->Append(wxID_EXIT); wxMenu *menuHelp = new wxMenu; menuHelp->Append(wxID_ABOUT); wxMenuBar *menuBar = new wxMenuBar; menuBar->Append(menuFile, "&File"); menuBar->Append(menuHelp, "&Help"); SetMenuBar(menuBar); CreateStatusBar(); SetStatusText("This is status." ); }
void WinEDA_BasicFrame::DisplayActivity(int PerCent, const wxString & Text) /*************************************************************************/ /* Display a bargraph (0 to 50 point length) for a PerCent value from 0 to 100 */ { wxString Line; Line = Text; PerCent = (PerCent < 0) ? 0 : PerCent; PerCent = (PerCent > 100) ? 100 : PerCent; PerCent /= 2; // Bargraph is 0 .. 50 points from 0% to 100% if (PerCent) Line.Pad(PerCent, '*'); SetStatusText(Line); }
/* * Update the status bar information. */ void PCB_BASE_FRAME::UpdateStatusBar() { EDA_DRAW_FRAME::UpdateStatusBar(); if( DisplayOpt.DisplayPolarCood ) // display polar coordinates { PCB_SCREEN* screen = GetScreen(); if( !screen ) return; wxString Line; double theta, ro; int dx = screen->GetCrossHairPosition().x - screen->m_O_Curseur.x; int dy = screen->GetCrossHairPosition().y - screen->m_O_Curseur.y; if( dx==0 && dy==0 ) theta = 0.0; else theta = atan2( (double) -dy, (double) dx ); theta = theta * 180.0 / M_PI; ro = sqrt( ( (double) dx * dx ) + ( (double) dy * dy ) ); wxString formatter; switch( g_UserUnit ) { case INCHES: formatter = wxT( "Ro %.4f Th %.1f" ); break; case MILLIMETRES: formatter = wxT( "Ro %.3f Th %.1f" ); break; case UNSCALED_UNITS: formatter = wxT( "Ro %f Th %f" ); break; } Line.Printf( formatter, To_User_Unit( g_UserUnit, ro, m_internalUnits ), theta ); // overwrite the absolute cartesian coordinates SetStatusText( Line, 2 ); } }
void MyFrame::OnStartThreads(wxCommandEvent& WXUNUSED(event) ) { static long s_num; s_num = wxGetNumberFromUser(wxT("How many threads to start: "), wxT(""), wxT("wxThread sample"), s_num, 1, 10000, this); if ( s_num == -1 ) { s_num = 10; return; } unsigned count = unsigned(s_num), n; wxArrayThread threads; // first create them all... for ( n = 0; n < count; n++ ) { wxThread *thr = CreateThread(); // we want to show the effect of SetPriority(): the first thread will // have the lowest priority, the second - the highest, all the rest // the normal one if ( n == 0 ) thr->SetPriority(wxPRIORITY_MIN); else if ( n == 1 ) thr->SetPriority(wxPRIORITY_MAX); else thr->SetPriority(wxPRIORITY_DEFAULT); threads.Add(thr); } #if wxUSE_STATUSBAR wxString msg; msg.Printf(wxT("%d new threads created."), count); SetStatusText(msg, 1); #endif // wxUSE_STATUSBAR // ...and then start them for ( n = 0; n < count; n++ ) { threads[n]->Run(); } }
//Construtor da Frame MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size) :wxFrame(NULL, wxID_ANY, title, pos, size){ //Criação do Menu Menu *MenuBar = new Menu(); SetMenuBar(MenuBar); Centre(); //Setando o ícone SetIcon(wxIcon(wxString(_T("/../Images/Icones/icone"), wxBITMAP_TYPE_BMP))); //Criando barra de ferramentas m_toolbar = CreateToolBar(wxTB_FLAT | wxTB_HORIZONTAL | wxTB_TEXT,wxID_ANY); m_toolbar->AddTool(ID_NEW, wxString(_("Novo")), wxBitmap(wxT("../../Images/Icones/newfile.bmp"), wxBITMAP_TYPE_BMP), wxString(_("Novo"))); m_toolbar->AddTool(ID_SAVE, wxString(_("Salvar")), wxBitmap(wxT("../../Images/Icones/save.bmp"), wxBITMAP_TYPE_BMP), wxString(_("Salvar"))); m_toolbar->AddTool(ID_OPEN, wxString(_("Abrir")), wxBitmap(wxT("../../Images/Icones/open.bmp"), wxBITMAP_TYPE_BMP), wxString(_("Abrir"))); m_toolbar->AddSeparator(); m_toolbar->AddTool(ID_HELP, wxString(_("Ajuda")), wxBitmap(wxT("../../Images/Icones/help.bmp"), wxBITMAP_TYPE_BMP), wxString(_("Ajuda"))); m_toolbar->AddTool(wxID_EXIT, wxString(_("Sair")), wxBitmap(wxT("../../Images/Icones/close.bmp"), wxBITMAP_TYPE_BMP), wxString(_("Sair"))); //Para atualizar a barra de ferramentas com os ícones bitmap m_toolbar->Realize(); //Setanto barra de ferramentas SetToolBar(m_toolbar); //Barra de Status CreateStatusBar(3); SetStatusText("TP2 PAC", 0); // connectando eventos de menu da frame aos "handlers" da classe menu Connect(ID_NEW, wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(Menu::OnNew)); Connect(ID_OPEN, wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(Menu::OnOpen)); Connect(ID_SAVE, wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(Menu::OnSave)); Connect(ID_HELP, wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(Menu::OnHelp)); Connect(ID_PORTUGUESE, wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(Menu::OnPortuguese)); Connect(ID_ENGLISH, wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(Menu::OnEnglish)); Connect(ID_SPANISH, wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(Menu::OnSpanish)); Connect(wxID_EXIT, wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(Menu::OnExit)); Connect(wxID_ABOUT, wxEVT_COMMAND_MENU_SELECTED,wxCommandEventHandler(Menu::OnAbout)); };
bool FOOTPRINT_EDIT_FRAME::DeleteModuleFromLibrary( const LIB_ID& aFPID, bool aConfirm ) { if( !aFPID.IsValid() ) return false; wxString nickname = aFPID.GetLibNickname(); wxString fpname = aFPID.GetLibItemName(); // Legacy libraries are readable, but modifying legacy format is not allowed // So prompt the user if he try to delete a footprint from a legacy lib wxString libfullname = Prj().PcbFootprintLibs()->FindRow( nickname )->GetFullURI(); if( IO_MGR::GuessPluginTypeFromLibPath( libfullname ) == IO_MGR::LEGACY ) { DisplayInfoMessage( this, INFO_LEGACY_LIB_WARN_DELETE ); return false; } if( !Prj().PcbFootprintLibs()->IsFootprintLibWritable( nickname ) ) { wxString msg = wxString::Format( _( "Library \"%s\" is read only" ), nickname ); DisplayError( this, msg ); return false; } // Confirmation wxString msg = wxString::Format( FMT_OK_DELETE, fpname.GetData(), nickname.GetData() ); if( aConfirm && !IsOK( this, msg ) ) return false; try { Prj().PcbFootprintLibs()->FootprintDelete( nickname, fpname ); } catch( const IO_ERROR& ioe ) { DisplayError( this, ioe.What() ); return false; } msg.Printf( FMT_MOD_DELETED, fpname.GetData(), nickname.GetData() ); SetStatusText( msg ); return true; }
MainWindow::MainWindow( const wxChar *title, int xpos, int ypos, int width, int height) : wxFrame ( (wxFrame *) NULL, -1, title, wxPoint(xpos, ypos), wxSize(width, height)) { //Gui erstellen top_panel = new wxPanel (this, ID_PANELTOP, wxPoint(0, 0), wxSize(850, 40)); top_panel->Show(true); CreateStatusBar(1); //Anwendungobjekte instanziiern db = new DBConnectionManager(); //Datenhaltungobjekte instanziieren config = new ConfigurationManager(wxT("Artikelverwaltung")); bool connected; db->SetDBData(config->GetDBIPAdress(), config->GetDBName(), config->GetDBUser(), config->GetDBPassword()); connected = db->Connect(); //UpdateDaemon starten updater = new UpdateDaemon(this); if(connected) { locked = false; this->CreateContentPanels(); } tbutton_artikel = new wxToggleButton(top_panel, ID_TBUTTONARTIKEL, wxT("Artikel"), wxPoint(10, 5), wxSize(80, -1)); tbutton_lieferant = new wxToggleButton(top_panel, ID_TBUTTONLIEFERANT, wxT("Lieferanten"), wxPoint(100, 5), wxSize(90, -1)); tbutton_hersteller = new wxToggleButton(top_panel, ID_TBUTTONHERSTELLER, wxT("Hersteller"), wxPoint(200, 5), wxSize(80, -1)); tfield_searchBox = new wxTextCtrl( top_panel, ID_TFIELDSEARCHBOX, wxT(""), wxPoint(300, 7), wxSize(200, -1), wxTE_HT_BELOW ); button_removeObject = new wxButton( top_panel, ID_BUTTONREMOVE, wxT("-"), wxPoint(820, 5) , wxSize(30, -1)); button_removeObject->Enable(false); button_addObject = new wxButton (top_panel, ID_BUTTONADD, wxT("+"), wxPoint(785, 5), wxSize(30, -1)); button_addObject->Enable(false); settings_panel = new SettingsPanel(this, ID_PANELMAIN, wxPoint(0, 45), wxSize(850, 430)); SetStatusText((connected) ? wxT("Geklappt") : wxT("scheisse")); }
STDMETHODIMP CSubIndicator :: ChangeText (PIFLAGS fWhichText, BSTR bstrNewText) { TX_ASSERT (NULL != (IProgressIndicator2 *) m_wPI); // erstmal generell die verlangte Aktion ausführen HRESULT hr = m_wPI -> ChangeText (fWhichText, bstrNewText); // wenn der Statustext geändert wird, dann diesen Text ab sofort von hier aus handeln if (fWhichText & PIFLAG_ADJUSTPERCENT || fWhichText & PIFLAG_STATUS) { USES_CONVERSION; m_strPercentText = OLE2A(bstrNewText); RETURN_FAILED_HRESULT(SetStatusText()); } return hr; }
void MyFrame::OnSaveAs( wxCommandEvent& WXUNUSED(event) ) { #if wxUSE_FILEDLG wxFileDialog dialog( this, _T("Open text"), wxEmptyString, wxEmptyString, _T("Text file (*.txt)|*.txt|Any file (*)|*"), wxFD_SAVE|wxFD_OVERWRITE_PROMPT ); if (dialog.ShowModal() == wxID_OK) { m_filename = dialog.GetPath(); m_text->SaveFile( m_filename ); #if wxUSE_STATUSBAR SetStatusText( m_filename ); #endif // wxUSE_STATUSBAR } #endif // wxUSE_FILEDLG }
void ArtikelEdit::EventOnClickSaveButton(wxCommandEvent &event) { if(tfield_nr->GetValue() != oldArtikelNummer || tfield_preis->GetValue() != oldVKPreis || tfield_beschreibung->GetValue() != oldBeschreibung || arr_db_list[lastSelectedItem] != oldHerstellerId ) { SetStatusText(wxT("Mache eine DB Abfrage")); db->updateArtikelById(artId, tfield_nr->GetValue(), tfield_preis->GetValue(), tfield_beschreibung->GetValue(), arr_db_list[lastSelectedItem]); main->getArtikelPanelObject()->SearchArtikel(wxT("")); } wxString msg = wxT("Der Artikel "); msg << tfield_nr->GetValue(); msg << wxT(" wurde gespeichert!"); main->SetStatusText(msg); this->Close(); }
void CControlBar::OnDestroy() { AFX_MODULE_THREAD_STATE* pModuleThreadState = AfxGetModuleThreadState(); if (pModuleThreadState->m_pLastStatus == this) { SetStatusText(static_cast<INT_PTR>(-1)); ASSERT(pModuleThreadState->m_pLastStatus == NULL); } if (m_pDockSite != NULL) { m_pDockSite->RemoveControlBar(this); m_pDockSite = NULL; } CWnd::OnDestroy(); }
bool FOOTPRINT_EDIT_FRAME::DeleteModuleFromCurrentLibrary() { wxString nickname = getLibNickName(); if( !FootprintLibs()->IsFootprintLibWritable( nickname ) ) { wxString msg = wxString::Format( _( "Library '%s' is read only" ), GetChars( nickname ) ); DisplayError( this, msg ); return false; } wxString fpid_txt = PCB_BASE_FRAME::SelectFootprint( this, nickname, wxEmptyString, wxEmptyString, FootprintLibs() ); if( !fpid_txt ) return false; FPID fpid( fpid_txt ); wxString fpname = fpid.GetFootprintName(); // Confirmation wxString msg = wxString::Format( FMT_OK_DELETE, fpname.GetData(), nickname.GetData() ); if( !IsOK( this, msg ) ) return false; try { FootprintLibs()->FootprintDelete( nickname, fpname ); } catch( const IO_ERROR& ioe ) { DisplayError( this, ioe.errorText ); return false; } msg.Printf( FMT_MOD_DELETED, fpname.GetData(), nickname.GetData() ); SetStatusText( msg ); return true; }
void MyFrame::OnSetGravity(wxCommandEvent& WXUNUSED(event) ) { wxString str; str.Printf( wxT("%g"), m_splitter->GetSashGravity()); #if wxUSE_TEXTDLG str = wxGetTextFromUser(wxT("Enter sash gravity (0,1):"), wxT(""), str, this); #endif if ( str.empty() ) return; double gravity = wxStrtod( str, (wxChar**)NULL); m_splitter->SetSashGravity(gravity); #if wxUSE_STATUSBAR str.Printf( wxT("Gravity = %g"), gravity); SetStatusText(str, 1); #endif // wxUSE_STATUSBAR }
void MyFrame::OnSetMinSize(wxCommandEvent& WXUNUSED(event) ) { wxString str; str.Printf( wxT("%d"), m_splitter->GetMinimumPaneSize()); #if wxUSE_TEXTDLG str = wxGetTextFromUser(wxT("Enter minimal size for panes:"), wxT(""), str, this); #endif if ( str.empty() ) return; int minsize = wxStrtol( str, (wxChar**)NULL, 10 ); m_splitter->SetMinimumPaneSize(minsize); #if wxUSE_STATUSBAR str.Printf( wxT("Min pane size = %d"), minsize); SetStatusText(str, 1); #endif // wxUSE_STATUSBAR }
MyChild::MyChild(wxMDIParentFrame *parent, const wxString& title, const wxPoint& pos, const wxSize& size, const long style) : wxMDIChildFrame(parent, wxID_ANY, title, pos, size, style) { m_frame = (MyFrame *) parent; #if wxUSE_STATUSBAR CreateStatusBar(); SetStatusText(title); #endif // wxUSE_STATUSBAR m_canvas = new MyCanvas(this, wxPoint(0, 0), GetClientSize()); // Give it scrollbars m_canvas->SetScrollbars(20, 20, 50, 50); }
void MonitorManager::OnLButtonUp(CWnd* pRulerWnd) { if(m_bLButtonDown) { ((CRulerCtlWnd*)pRulerWnd)->DrawRulerCursor(-1,-1,false); } SetStatusText(_T("Ready")); /* if(m_aSelectedControler.size() == 0) { SetMonitorText(_T("N/A")); } */ m_bLButtonDown=false; m_pCurrentControler=NULL; m_ePos=RotateRect::POS_NULL; }
MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) : wxFrame((wxFrame *)NULL, -1, title, pos, size) { wxMenu *menuFile = new wxMenu; menuFile->Append( ID_About, _T("&About...") ); menuFile->AppendSeparator(); menuFile->Append( ID_Quit, _T("E&xit") ); wxMenuBar *menuBar = new wxMenuBar; menuBar->Append( menuFile, _T("&File") ); SetMenuBar( menuBar ); CreateStatusBar(); SetStatusText( _T("Welcome to wxWidgets!") ); }
//--------------------------------------------------------- void CVIEW_Map_3D::Update_StatusBar(void) { if( m_pPanel ) { SetStatusText(wxString::Format(wxT("X %+.1f\xb0"), m_pPanel->Get_Projector().Get_xRotation() * M_RAD_TO_DEG), MAP3D_STATUSBAR_ROTATE_X); SetStatusText(wxString::Format(wxT("Y %+.1f\xb0"), m_pPanel->Get_Projector().Get_yRotation() * M_RAD_TO_DEG), MAP3D_STATUSBAR_ROTATE_Y); SetStatusText(wxString::Format(wxT("Z %+.1f\xb0"), m_pPanel->Get_Projector().Get_zRotation() * M_RAD_TO_DEG), MAP3D_STATUSBAR_ROTATE_Z); SetStatusText(wxString::Format(wxT("X %+.1f" ), m_pPanel->Get_Projector().Get_xShift()), MAP3D_STATUSBAR_SHIFT_X); SetStatusText(wxString::Format(wxT("Y %+.1f" ), m_pPanel->Get_Projector().Get_yShift()), MAP3D_STATUSBAR_SHIFT_Y); SetStatusText(wxString::Format(wxT("Z %+.1f" ), m_pPanel->Get_Projector().Get_zShift()), MAP3D_STATUSBAR_SHIFT_Z); SetStatusText(wxString::Format(wxT("E %.1f" ), m_pPanel->m_zScale), MAP3D_STATUSBAR_EXAGGERATION); } }
MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size) : wxFrame((wxFrame *)NULL, -1, title, pos, size) { wxMenu *menuFile = new wxMenu; menuFile->Append( ID_About, "&About..." ); menuFile->AppendSeparator(); menuFile->Append( ID_Quit, "E&xit" ); wxMenuBar *menuBar = new wxMenuBar; menuBar->Append( menuFile, "&File" ); SetMenuBar( menuBar ); CreateStatusBar(); SetStatusText( "Ready" ); }