summaryrefslogtreecommitdiff
path: root/win/Mainfrm.cpp
diff options
context:
space:
mode:
authorleo2005-12-20 22:12:46 +0000
committerleo2005-12-20 22:12:46 +0000
commit2bb4077086d23164941750e9cecf5a40889a7b40 (patch)
treed152b2e0ee9bf61c8a4f7f4f38ba7bd129103b84 /win/Mainfrm.cpp
parent98f3bd8740246fe88c3db3278fe533dc2f368d12 (diff)
Remove Piecesbar Combobox toggle option (always on now).
git-svn-id: http://svn.leocad.org/trunk@444 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Mainfrm.cpp')
-rw-r--r--win/Mainfrm.cpp10
1 files changed, 1 insertions, 9 deletions
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;
}