From 31ee773757df1c85399cb06135b7c48129a2b327 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 28 Sep 2005 19:07:56 +0000 Subject: Removed the option to disable the piece preview, it's always enabled now. git-svn-id: http://svn.leocad.org/trunk@422 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Mainfrm.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'win/Mainfrm.cpp') diff --git a/win/Mainfrm.cpp b/win/Mainfrm.cpp index 3475b07..4cf8901 100644 --- a/win/Mainfrm.cpp +++ b/win/Mainfrm.cpp @@ -472,9 +472,7 @@ LONG CMainFrame::OnPopupClose(UINT /*lParam*/, LONG /*wParam*/) LONG CMainFrame::UpdateSettings(UINT /*lParam*/, LONG /*wParam*/) { - int i = theApp.GetProfileInt("Settings", "Piecebar Options", - PIECEBAR_PREVIEW|PIECEBAR_GROUP|PIECEBAR_COMBO|PIECEBAR_ZOOMPREVIEW); - m_wndPiecesBar.m_bPreview = (i & PIECEBAR_PREVIEW) != 0; + int i = theApp.GetProfileInt("Settings", "Piecebar Options", PIECEBAR_GROUP|PIECEBAR_COMBO); m_wndPiecesBar.m_bSubParts = (i & PIECEBAR_SUBPARTS) != 0; m_wndPiecesBar.m_bGroups = (i & PIECEBAR_GROUP) != 0; m_wndPiecesBar.m_bCombo = (i & PIECEBAR_COMBO) != 0; @@ -546,10 +544,6 @@ void CMainFrame::OnPieceBar(UINT nID) m_wndPiecesBar.m_bGroups = !m_wndPiecesBar.m_bGroups; m_wndPiecesBar.m_wndPiecesList.UpdateList(); } break; - case ID_PIECEBAR_PREVIEW: - { - m_wndPiecesBar.m_bPreview = !m_wndPiecesBar.m_bPreview; - } break; case ID_PIECEBAR_NUMBERS: { m_wndPiecesBar.m_bNumbers = !m_wndPiecesBar.m_bNumbers; @@ -576,7 +570,6 @@ void CMainFrame::OnPieceBar(UINT nID) } UINT u = 0; - if (m_wndPiecesBar.m_bPreview) u |= PIECEBAR_PREVIEW; if (m_wndPiecesBar.m_bSubParts) u |= PIECEBAR_SUBPARTS; if (m_wndPiecesBar.m_bGroups) u |= PIECEBAR_GROUP; if (m_wndPiecesBar.m_bCombo) u |= PIECEBAR_COMBO; @@ -590,8 +583,6 @@ void CMainFrame::OnUpdatePieceBar(CCmdUI* pCmdUI) { case ID_PIECEBAR_GROUP: pCmdUI->SetCheck(m_wndPiecesBar.m_bGroups); break; - case ID_PIECEBAR_PREVIEW: - pCmdUI->SetCheck(m_wndPiecesBar.m_bPreview); break; case ID_PIECEBAR_NUMBERS: pCmdUI->SetCheck(m_wndPiecesBar.m_bNumbers); break; case ID_PIECEBAR_COMBOBOX: -- cgit v1.2.3