summaryrefslogtreecommitdiff
path: root/win/Prefpage.cpp
diff options
context:
space:
mode:
authorleo2005-09-28 19:07:56 +0000
committerleo2005-09-28 19:07:56 +0000
commit31ee773757df1c85399cb06135b7c48129a2b327 (patch)
treed62d662f3303deb671bf946b699b88eb3a1a8dd1 /win/Prefpage.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/Prefpage.cpp')
-rw-r--r--win/Prefpage.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/win/Prefpage.cpp b/win/Prefpage.cpp
index acea191..b872003 100644
--- a/win/Prefpage.cpp
+++ b/win/Prefpage.cpp
@@ -27,9 +27,7 @@ IMPLEMENT_DYNCREATE(CPreferencesKeyboard, CPropertyPage)
CPreferencesGeneral::CPreferencesGeneral() : CPropertyPage(CPreferencesGeneral::IDD)
{
//{{AFX_DATA_INIT(CPreferencesGeneral)
- m_bZoom = FALSE;
m_bSubparts = FALSE;
- m_bPreview = FALSE;
m_nSaveTime = 0;
m_bNumbers = FALSE;
m_bGroup = FALSE;
@@ -50,9 +48,7 @@ void CPreferencesGeneral::DoDataExchange(CDataExchange* pDX)
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPreferencesGeneral)
DDX_Control(pDX, IDC_GENDLG_MOUSE, m_ctlMouse);
- DDX_Check(pDX, IDC_GENDLG_ZOOM, m_bZoom);
DDX_Check(pDX, IDC_GENDLG_SUBPARTS, m_bSubparts);
- DDX_Check(pDX, IDC_GENDLG_PREVIEW, m_bPreview);
DDX_Text(pDX, IDC_GENDLG_SAVETIME, m_nSaveTime);
DDV_MinMaxInt(pDX, m_nSaveTime, 1, 60);
DDX_Check(pDX, IDC_GENDLG_NUMBERS, m_bNumbers);
@@ -93,14 +89,11 @@ void CPreferencesGeneral::SetOptions(int nSaveInterval, int nMouse, const char*
m_strUser = strUser;
m_Updates = AfxGetApp()->GetProfileInt("Settings", "CheckUpdates", 1);
- int i = AfxGetApp()->GetProfileInt("Settings", "Piecebar Options",
- PIECEBAR_PREVIEW|PIECEBAR_GROUP|PIECEBAR_COMBO|PIECEBAR_ZOOMPREVIEW);
- m_bPreview = (i & PIECEBAR_PREVIEW) != 0;
+ int i = AfxGetApp()->GetProfileInt("Settings", "Piecebar Options", PIECEBAR_GROUP|PIECEBAR_COMBO);
m_bSubparts = (i & PIECEBAR_SUBPARTS) != 0;
m_bGroup = (i & PIECEBAR_GROUP) != 0;
m_bCombo = (i & PIECEBAR_COMBO) != 0;
m_bNumbers = (i & PIECEBAR_PARTNUMBERS) != 0;
- m_bZoom = (i & PIECEBAR_ZOOMPREVIEW) != 0;
}
void CPreferencesGeneral::GetOptions(int* nSaveTime, int* nMouse, char* strFolder, char* strUser)
@@ -112,12 +105,10 @@ void CPreferencesGeneral::GetOptions(int* nSaveTime, int* nMouse, char* strFolde
strcpy(strUser, m_strUser);
int i = 0;
- if (m_bPreview) i |= PIECEBAR_PREVIEW;
if (m_bSubparts) i |= PIECEBAR_SUBPARTS;
if (m_bGroup) i |= PIECEBAR_GROUP;
if (m_bCombo) i |= PIECEBAR_COMBO;
if (m_bNumbers) i |= PIECEBAR_PARTNUMBERS;
- if (m_bZoom) i |= PIECEBAR_ZOOMPREVIEW;
AfxGetApp()->WriteProfileInt("Settings", "Piecebar Options", i);
AfxGetApp()->WriteProfileInt("Settings", "CheckUpdates", m_Updates);