From 2bb4077086d23164941750e9cecf5a40889a7b40 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 20 Dec 2005 22:12:46 +0000 Subject: Remove Piecesbar Combobox toggle option (always on now). git-svn-id: http://svn.leocad.org/trunk@444 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Mainfrm.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'win/Mainfrm.cpp') diff --git a/win/Mainfrm.cpp b/win/Mainfrm.cpp index 83579b6..78b4b52 100644 --- a/win/Mainfrm.cpp +++ b/win/Mainfrm.cpp @@ -474,10 +474,9 @@ LONG CMainFrame::OnPopupClose(UINT /*lParam*/, LONG /*wParam*/) LONG CMainFrame::UpdateSettings(UINT /*lParam*/, LONG /*wParam*/) { - int i = theApp.GetProfileInt("Settings", "Piecebar Options", PIECEBAR_GROUP|PIECEBAR_COMBO); + int i = theApp.GetProfileInt("Settings", "Piecebar Options", PIECEBAR_GROUP); m_wndPiecesBar.m_bSubParts = (i & PIECEBAR_SUBPARTS) != 0; m_wndPiecesBar.m_bGroups = (i & PIECEBAR_GROUP) != 0; - m_wndPiecesBar.m_bCombo = (i & PIECEBAR_COMBO) != 0; m_wndPiecesBar.m_bNumbers = (i & PIECEBAR_PARTNUMBERS) != 0; RECT rc; @@ -550,10 +549,6 @@ void CMainFrame::OnPieceBar(UINT nID) { m_wndPiecesBar.m_bNumbers = !m_wndPiecesBar.m_bNumbers; } break; - case ID_PIECEBAR_COMBOBOX: - { - m_wndPiecesBar.m_bCombo = !m_wndPiecesBar.m_bCombo; - } break; case ID_PIECEBAR_SUBPARTS: { m_wndPiecesBar.m_bSubParts = !m_wndPiecesBar.m_bSubParts; @@ -574,7 +569,6 @@ void CMainFrame::OnPieceBar(UINT nID) UINT u = 0; if (m_wndPiecesBar.m_bSubParts) u |= PIECEBAR_SUBPARTS; if (m_wndPiecesBar.m_bGroups) u |= PIECEBAR_GROUP; - if (m_wndPiecesBar.m_bCombo) u |= PIECEBAR_COMBO; if (m_wndPiecesBar.m_bNumbers) u |= PIECEBAR_PARTNUMBERS; theApp.WriteProfileInt("Settings", "Piecebar Options", u); } @@ -587,8 +581,6 @@ void CMainFrame::OnUpdatePieceBar(CCmdUI* pCmdUI) pCmdUI->SetCheck(m_wndPiecesBar.m_bGroups); break; case ID_PIECEBAR_NUMBERS: pCmdUI->SetCheck(m_wndPiecesBar.m_bNumbers); break; - case ID_PIECEBAR_COMBOBOX: - pCmdUI->SetCheck(m_wndPiecesBar.m_bCombo); break; case ID_PIECEBAR_SUBPARTS: pCmdUI->SetCheck(m_wndPiecesBar.m_bSubParts); break; } -- cgit v1.2.3