summaryrefslogtreecommitdiff
path: root/win/Mainfrm.cpp
diff options
context:
space:
mode:
authorleo2005-09-28 19:07:56 +0000
committerleo2005-09-28 19:07:56 +0000
commit31ee773757df1c85399cb06135b7c48129a2b327 (patch)
treed62d662f3303deb671bf946b699b88eb3a1a8dd1 /win/Mainfrm.cpp
parentbfde4a4c719508b3d78a413eaa7564001c1f1b1f (diff)
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
Diffstat (limited to 'win/Mainfrm.cpp')
-rw-r--r--win/Mainfrm.cpp11
1 files changed, 1 insertions, 10 deletions
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: