X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdialogs.cpp;h=2fadb35695214e41ca02d7215b73dbe271185fac;hb=f1303ea0f1188b0a89846c67b5783f596e7ba1b7;hp=6d20898dab59ca513f8d6c9ccc3b478dbd5483c4;hpb=b161e504433ad5d62dd2ecb0e325da73718f00a3;p=ctsim.git diff --git a/src/dialogs.cpp b/src/dialogs.cpp index 6d20898..2fadb35 100644 --- a/src/dialogs.cpp +++ b/src/dialogs.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: dialogs.cpp,v 1.37 2001/02/20 17:44:14 kevin Exp $ +** $Id: dialogs.cpp,v 1.38 2001/02/21 20:13:03 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -222,7 +222,7 @@ DialogGetComparisonImage::getMakeDifferenceImage() ///////////////////////////////////////////////////////////////////// DialogPreferences::DialogPreferences (wxWindow* pParent, const char* const pszTitle, - bool bAdvancedOptions, bool bAskDeleteNewDocs) + bool bAdvancedOptions, bool bAskDeleteNewDocs, bool bVerboseLogging) : wxDialog (pParent, -1, pszTitle, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxCAPTION) { wxBoxSizer* pTopSizer = new wxBoxSizer (wxVERTICAL); @@ -239,6 +239,10 @@ DialogPreferences::DialogPreferences (wxWindow* pParent, const char* const pszTi m_pCBAskDeleteNewDocs->SetValue (bAskDeleteNewDocs); pTopSizer->Add (m_pCBAskDeleteNewDocs, 0, wxALIGN_CENTER_VERTICAL); + m_pCBVerboseLogging = new wxCheckBox (this, -1, "Verbose Logging", wxDefaultPosition, wxSize(250, 25), 0); + m_pCBVerboseLogging->SetValue (bVerboseLogging); + pTopSizer->Add (m_pCBVerboseLogging, 0, wxALIGN_CENTER_VERTICAL); + pTopSizer->Add (new wxStaticLine (this, -1, wxDefaultPosition, wxSize(3,3), wxHORIZONTAL), 0, wxEXPAND | wxALL, 5); wxBoxSizer* pButtonSizer = new wxBoxSizer (wxHORIZONTAL); @@ -274,6 +278,12 @@ DialogPreferences::getAskDeleteNewDocs () return static_cast(m_pCBAskDeleteNewDocs->GetValue()); } +bool +DialogPreferences::getVerboseLogging () +{ + return static_cast(m_pCBVerboseLogging->GetValue()); +} + ///////////////////////////////////////////////////////////////////// // CLASS DiaglogGetMinMax Implementation