git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28931
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual void SetFrameParameters(const wxString& title,
const wxSize& size,
const wxPoint& pos = wxDefaultPosition,
virtual void SetFrameParameters(const wxString& title,
const wxSize& size,
const wxPoint& pos = wxDefaultPosition,
- bool newFrameEachTime = FALSE)
+ bool newFrameEachTime = false)
{
m_helpController->SetFrameParameters( title, size, pos,
newFrameEachTime );
{
m_helpController->SetFrameParameters( title, size, pos,
newFrameEachTime );
// Created: 16/04/2000
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Created: 16/04/2000
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_HELPCHM_H_
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_HELPCHM_H_
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_HELPWIN_H_
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_HELPWIN_H_
class WXDLLEXPORT wxWinHelpController: public wxHelpControllerBase
{
DECLARE_CLASS(wxWinHelpController)
class WXDLLEXPORT wxWinHelpController: public wxHelpControllerBase
{
DECLARE_CLASS(wxWinHelpController)
public:
wxWinHelpController() {};
~wxWinHelpController() {};
public:
wxWinHelpController() {};
~wxWinHelpController() {};
protected:
// Append extension if necessary.
wxString GetValidFilename(const wxString& file) const;
protected:
// Append extension if necessary.
wxString GetValidFilename(const wxString& file) const;
private:
wxString m_helpFile;
};
private:
wxString m_helpFile;
};
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_IMAGLIST_H_
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_IMAGLIST_H_
// Specify the width and height of the images in the list,
// whether there are masks associated with them (e.g. if creating images
// from icons), and the initial size of the list.
// Specify the width and height of the images in the list,
// whether there are masks associated with them (e.g. if creating images
// from icons), and the initial size of the list.
- wxImageList(int width, int height, bool mask = TRUE, int initialCount = 1)
+ wxImageList(int width, int height, bool mask = true, int initialCount = 1)
{
Create(width, height, mask, initialCount);
}
{
Create(width, height, mask, initialCount);
}
// width, height specify the size of the images in the list (all the same).
// mask specifies whether the images have masks or not.
// initialNumber is the initial number of images to reserve.
// width, height specify the size of the images in the list (all the same).
// mask specifies whether the images have masks or not.
// initialNumber is the initial number of images to reserve.
- bool Create(int width, int height, bool mask = TRUE, int initialNumber = 1);
+ bool Create(int width, int height, bool mask = true, int initialNumber = 1);
// Adds a bitmap, and optionally a mask bitmap.
// Note that wxImageList creates *new* bitmaps, so you may delete
// Adds a bitmap, and optionally a mask bitmap.
// Note that wxImageList creates *new* bitmaps, so you may delete
bool RemoveAll();
// Draws the given image on a dc at the specified position.
bool RemoveAll();
// Draws the given image on a dc at the specified position.
- // If 'solidBackground' is TRUE, Draw sets the image list background
+ // If 'solidBackground' is true, Draw sets the image list background
// colour to the background colour of the wxDC, to speed up
// drawing by eliminating masked drawing where possible.
bool Draw(int index, wxDC& dc, int x, int y,
int flags = wxIMAGELIST_DRAW_NORMAL,
// colour to the background colour of the wxDC, to speed up
// drawing by eliminating masked drawing where possible.
bool Draw(int index, wxDC& dc, int x, int y,
int flags = wxIMAGELIST_DRAW_NORMAL,
- bool solidBackground = FALSE);
+ bool solidBackground = false);
// TODO: miscellaneous functionality
/*
// TODO: miscellaneous functionality
/*
- wxImageList *dragImageList = new wxImageList(16, 16, TRUE);
+ wxImageList *dragImageList = new wxImageList(16, 16, true);
dragImageList->Add(myDragImage); // Provide an image to combine with the current cursor
dragImageList->BeginDrag(0, wxPoint(0, 0));
dragImageList->Add(myDragImage); // Provide an image to combine with the current cursor
dragImageList->BeginDrag(0, wxPoint(0, 0));
- wxShowCursor(FALSE); // wxShowCursor not yet implemented in wxWin
+ wxShowCursor(false); // wxShowCursor not yet implemented in wxWin
myWindow->CaptureMouse();
2) Dragging:
myWindow->CaptureMouse();
2) Dragging:
dragImageList->EndDrag();
myWindow->ReleaseMouse();
dragImageList->EndDrag();
myWindow->ReleaseMouse();
// Name: include/wx/msw/iniconf.h
// Purpose: INI-file based wxConfigBase implementation
// Author: Vadim Zeitlin
// Name: include/wx/msw/iniconf.h
// Purpose: INI-file based wxConfigBase implementation
// Author: Vadim Zeitlin
// Created: 27.07.98
// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Created: 27.07.98
// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
virtual bool GetFirstEntry(wxString& str, long& lIndex) const;
virtual bool GetNextEntry (wxString& str, long& lIndex) const;
virtual bool GetFirstEntry(wxString& str, long& lIndex) const;
virtual bool GetNextEntry (wxString& str, long& lIndex) const;
- virtual size_t GetNumberOfEntries(bool bRecursive = FALSE) const;
- virtual size_t GetNumberOfGroups(bool bRecursive = FALSE) const;
+ virtual size_t GetNumberOfEntries(bool bRecursive = false) const;
+ virtual size_t GetNumberOfGroups(bool bRecursive = false) const;
virtual bool HasGroup(const wxString& strName) const;
virtual bool HasEntry(const wxString& strName) const;
virtual bool HasGroup(const wxString& strName) const;
virtual bool HasEntry(const wxString& strName) const;
- // return TRUE if the current group is empty
+ // return true if the current group is empty
- virtual bool Flush(bool bCurrentOnly = FALSE);
+ virtual bool Flush(bool bCurrentOnly = false);
virtual bool RenameEntry(const wxString& oldName, const wxString& newName);
virtual bool RenameGroup(const wxString& oldName, const wxString& newName);
virtual bool RenameEntry(const wxString& oldName, const wxString& newName);
virtual bool RenameGroup(const wxString& oldName, const wxString& newName);
- virtual bool DeleteEntry(const wxString& Key, bool bGroupIfEmptyAlso = TRUE);
+ virtual bool DeleteEntry(const wxString& Key, bool bGroupIfEmptyAlso = true);
virtual bool DeleteGroup(const wxString& szKey);
virtual bool DeleteAll();
virtual bool DeleteGroup(const wxString& szKey);
virtual bool DeleteAll();
// Created: 02/04/2001
// RCS-ID: $Id$
// Copyright: (c) Mattia Barbon
// Created: 02/04/2001
// RCS-ID: $Id$
// Copyright: (c) Mattia Barbon
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
if( chm->Initialize( GetValidFilename( filename ) ) )
{
m_helpController = chm;
if( chm->Initialize( GetValidFilename( filename ) ) )
{
m_helpController = chm;
if( html->Initialize( GetValidFilename( filename ) ) )
{
m_helpController = html;
if( html->Initialize( GetValidFilename( filename ) ) )
{
m_helpController = html;
}
wxString wxBestHelpController::GetValidFilename( const wxString& filename ) const
}
wxString wxBestHelpController::GetValidFilename( const wxString& filename ) const
if( !lib )
{
wxLogError(_("MS HTML Help functions are unavailable because the MS HTML Help library is not installed on this machine. Please install it."));
if( !lib )
{
wxLogError(_("MS HTML Help functions are unavailable because the MS HTML Help library is not installed on this machine. Please install it."));
wxLogError(_("Failed to initialize MS HTML Help."));
lib->UnrefLib();
wxLogError(_("Failed to initialize MS HTML Help."));
lib->UnrefLib();
}
static void UnloadHtmlHelpLibrary()
}
static void UnloadHtmlHelpLibrary()
{
// warn on failure
if( !LoadHtmlHelpLibrary() )
{
// warn on failure
if( !LoadHtmlHelpLibrary() )
}
bool wxCHMHelpController::LoadFile(const wxString& file)
{
if (!file.IsEmpty())
m_helpFile = file;
}
bool wxCHMHelpController::LoadFile(const wxString& file)
{
if (!file.IsEmpty())
m_helpFile = file;
}
bool wxCHMHelpController::DisplayContents()
{
}
bool wxCHMHelpController::DisplayContents()
{
- if (m_helpFile.IsEmpty()) return FALSE;
+ if (m_helpFile.IsEmpty()) return false;
wxString str = GetValidFilename(m_helpFile);
gs_htmlHelp(GetSuitableHWND(), (const wxChar*) str, HH_DISPLAY_TOPIC, 0L);
wxString str = GetValidFilename(m_helpFile);
gs_htmlHelp(GetSuitableHWND(), (const wxChar*) str, HH_DISPLAY_TOPIC, 0L);
}
// Use topic or HTML filename
bool wxCHMHelpController::DisplaySection(const wxString& section)
{
}
// Use topic or HTML filename
bool wxCHMHelpController::DisplaySection(const wxString& section)
{
- if (m_helpFile.IsEmpty()) return FALSE;
+ if (m_helpFile.IsEmpty()) return false;
wxString str = GetValidFilename(m_helpFile);
// Is this an HTML file or a keyword?
wxString str = GetValidFilename(m_helpFile);
// Is this an HTML file or a keyword?
- bool isFilename = (section.Find(wxT(".htm")) != -1);
+ bool isFilename = (section.Find(wxT(".htm")) != wxNOT_FOUND);
if (isFilename)
gs_htmlHelp(GetSuitableHWND(), (const wxChar*) str, HH_DISPLAY_TOPIC, (DWORD) (const wxChar*) section);
else
KeywordSearch(section);
if (isFilename)
gs_htmlHelp(GetSuitableHWND(), (const wxChar*) str, HH_DISPLAY_TOPIC, (DWORD) (const wxChar*) section);
else
KeywordSearch(section);
}
// Use context number
bool wxCHMHelpController::DisplaySection(int section)
{
}
// Use context number
bool wxCHMHelpController::DisplaySection(int section)
{
- if (m_helpFile.IsEmpty()) return FALSE;
+ if (m_helpFile.IsEmpty()) return false;
wxString str = GetValidFilename(m_helpFile);
gs_htmlHelp(GetSuitableHWND(), (const wxChar*) str, HH_HELP_CONTEXT, (DWORD)section);
wxString str = GetValidFilename(m_helpFile);
gs_htmlHelp(GetSuitableHWND(), (const wxChar*) str, HH_HELP_CONTEXT, (DWORD)section);
}
bool wxCHMHelpController::DisplayContextPopup(int contextId)
{
}
bool wxCHMHelpController::DisplayContextPopup(int contextId)
{
- if (m_helpFile.IsEmpty()) return FALSE;
+ if (m_helpFile.IsEmpty()) return false;
wxString str = GetValidFilename(m_helpFile);
wxString str = GetValidFilename(m_helpFile);
popup.pszText = NULL;
gs_htmlHelp(GetSuitableHWND(), (const wxChar*) str, HH_DISPLAY_TEXT_POPUP, (DWORD) & popup);
popup.pszText = NULL;
gs_htmlHelp(GetSuitableHWND(), (const wxChar*) str, HH_DISPLAY_TEXT_POPUP, (DWORD) & popup);
}
bool wxCHMHelpController::DisplayTextPopup(const wxString& text, const wxPoint& pos)
}
bool wxCHMHelpController::DisplayTextPopup(const wxString& text, const wxPoint& pos)
popup.pszText = (const wxChar*) text;
gs_htmlHelp(GetSuitableHWND(), NULL, HH_DISPLAY_TEXT_POPUP, (DWORD) & popup);
popup.pszText = (const wxChar*) text;
gs_htmlHelp(GetSuitableHWND(), NULL, HH_DISPLAY_TEXT_POPUP, (DWORD) & popup);
}
bool wxCHMHelpController::DisplayBlock(long block)
}
bool wxCHMHelpController::DisplayBlock(long block)
bool wxCHMHelpController::KeywordSearch(const wxString& k,
wxHelpSearchMode WXUNUSED(mode))
{
bool wxCHMHelpController::KeywordSearch(const wxString& k,
wxHelpSearchMode WXUNUSED(mode))
{
- if (m_helpFile.IsEmpty()) return FALSE;
+ if (m_helpFile.IsEmpty()) return false;
wxString str = GetValidFilename(m_helpFile);
wxString str = GetValidFilename(m_helpFile);
link.fIndexOnFail = TRUE ;
gs_htmlHelp(GetSuitableHWND(), (const wxChar*) str, HH_KEYWORD_LOOKUP, (DWORD)& link);
link.fIndexOnFail = TRUE ;
gs_htmlHelp(GetSuitableHWND(), (const wxChar*) str, HH_KEYWORD_LOOKUP, (DWORD)& link);
}
bool wxCHMHelpController::Quit()
{
gs_htmlHelp(GetSuitableHWND(), 0, HH_CLOSE_ALL, 0L);
}
bool wxCHMHelpController::Quit()
{
gs_htmlHelp(GetSuitableHWND(), 0, HH_CLOSE_ALL, 0L);
}
// Append extension if necessary.
}
// Append extension if necessary.
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
bool wxWinHelpController::Initialize(const wxString& filename)
{
m_helpFile = filename;
bool wxWinHelpController::Initialize(const wxString& filename)
{
m_helpFile = filename;
}
bool wxWinHelpController::LoadFile(const wxString& file)
{
if (!file.IsEmpty())
m_helpFile = file;
}
bool wxWinHelpController::LoadFile(const wxString& file)
{
if (!file.IsEmpty())
m_helpFile = file;
}
bool wxWinHelpController::DisplayContents(void)
{
}
bool wxWinHelpController::DisplayContents(void)
{
- if (m_helpFile.IsEmpty()) return FALSE;
-
+ if (m_helpFile.IsEmpty()) return false;
+
wxString str = GetValidFilename(m_helpFile);
wxString str = GetValidFilename(m_helpFile);
#if defined(__WIN95__)
return (WinHelp(GetSuitableHWND(), (const wxChar*) str, HELP_FINDER, 0L) != 0);
#else
#if defined(__WIN95__)
return (WinHelp(GetSuitableHWND(), (const wxChar*) str, HELP_FINDER, 0L) != 0);
#else
bool wxWinHelpController::DisplaySection(int section)
{
// Use context number
bool wxWinHelpController::DisplaySection(int section)
{
// Use context number
- if (m_helpFile.IsEmpty()) return FALSE;
-
+ if (m_helpFile.IsEmpty()) return false;
+
wxString str = GetValidFilename(m_helpFile);
return (WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), (const wxChar*) str, HELP_CONTEXT, (DWORD)section) != 0);
wxString str = GetValidFilename(m_helpFile);
return (WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), (const wxChar*) str, HELP_CONTEXT, (DWORD)section) != 0);
bool wxWinHelpController::DisplayContextPopup(int contextId)
{
bool wxWinHelpController::DisplayContextPopup(int contextId)
{
- if (m_helpFile.IsEmpty()) return FALSE;
-
+ if (m_helpFile.IsEmpty()) return false;
+
wxString str = GetValidFilename(m_helpFile);
return (WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), (const wxChar*) str, HELP_CONTEXTPOPUP, (DWORD) contextId) != 0);
wxString str = GetValidFilename(m_helpFile);
return (WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), (const wxChar*) str, HELP_CONTEXTPOPUP, (DWORD) contextId) != 0);
bool wxWinHelpController::DisplayBlock(long block)
{
DisplaySection(block);
bool wxWinHelpController::DisplayBlock(long block)
{
DisplaySection(block);
}
bool wxWinHelpController::KeywordSearch(const wxString& k,
wxHelpSearchMode WXUNUSED(mode))
{
}
bool wxWinHelpController::KeywordSearch(const wxString& k,
wxHelpSearchMode WXUNUSED(mode))
{
- if (m_helpFile.IsEmpty()) return FALSE;
-
+ if (m_helpFile.IsEmpty()) return false;
+
wxString str = GetValidFilename(m_helpFile);
wxString str = GetValidFilename(m_helpFile);
return (WinHelp(GetSuitableHWND(), (const wxChar*) str, HELP_PARTIALKEY, (DWORD)(const wxChar*) k) != 0);
}
return (WinHelp(GetSuitableHWND(), (const wxChar*) str, HELP_PARTIALKEY, (DWORD)(const wxChar*) k) != 0);
}
if ( !handler )
{
// say something?
if ( !handler )
{
// say something?
}
return handler->Load(this, filename, type, desiredWidth, desiredHeight);
}
return handler->Load(this, filename, type, desiredWidth, desiredHeight);
#else
int dd = wxDisplayDepth();
#else
int dd = wxDisplayDepth();
- if (dd <= 4) flags |= ILC_COLOR; // 16 color
- else if (dd <= 8) flags |= ILC_COLOR8; // 256 color
- else if (dd <= 16) flags |= ILC_COLOR16; // 64k hi-color
- else if (dd <= 24) flags |= ILC_COLOR24; // 16m truecolor
- else if (dd <= 32) flags |= ILC_COLOR32; // 16m truecolor
+ if (dd <= 4) flags |= ILC_COLOR; // 16 color
+ else if (dd <= 8) flags |= ILC_COLOR8; // 256 color
+ else if (dd <= 16) flags |= ILC_COLOR16; // 64k hi-color
+ else if (dd <= 24) flags |= ILC_COLOR24; // 16m truecolor
+ else if (dd <= 32) flags |= ILC_COLOR32; // 16m truecolor
}
// Draws the given image on a dc at the specified position.
}
// Draws the given image on a dc at the specified position.
-// If 'solidBackground' is TRUE, Draw sets the image list background
+// If 'solidBackground' is true, Draw sets the image list background
// colour to the background colour of the wxDC, to speed up
// drawing by eliminating masked drawing where possible.
bool wxImageList::Draw(int index,
// colour to the background colour of the wxDC, to speed up
// drawing by eliminating masked drawing where possible.
bool wxImageList::Draw(int index,
bool solidBackground)
{
HDC hDC = GetHdcOf(dc);
bool solidBackground)
{
HDC hDC = GetHdcOf(dc);
- wxCHECK_MSG( hDC, FALSE, _T("invalid wxDC in wxImageList::Draw") );
+ wxCHECK_MSG( hDC, false, _T("invalid wxDC in wxImageList::Draw") );
COLORREF clr = CLR_NONE; // transparent by default
if ( solidBackground )
COLORREF clr = CLR_NONE; // transparent by default
if ( solidBackground )
{
HBITMAP hbmpMask;
wxMask *pMask;
{
HBITMAP hbmpMask;
wxMask *pMask;
- bool deleteMask = FALSE;
+ bool deleteMask = false;
pMask = new wxMask(bitmap, col);
pMask = new wxMask(bitmap, col);
}
hbmpMask = (HBITMAP)pMask->GetMaskBitmap();
}
hbmpMask = (HBITMAP)pMask->GetMaskBitmap();
{
wxFAIL_MSG("not implemented");
{
wxFAIL_MSG("not implemented");
}
bool wxIniConfig::GetNextGroup (wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
{
wxFAIL_MSG("not implemented");
}
bool wxIniConfig::GetNextGroup (wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
{
wxFAIL_MSG("not implemented");
}
bool wxIniConfig::GetFirstEntry(wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
{
wxFAIL_MSG("not implemented");
}
bool wxIniConfig::GetFirstEntry(wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
{
wxFAIL_MSG("not implemented");
}
bool wxIniConfig::GetNextEntry (wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
{
wxFAIL_MSG("not implemented");
}
bool wxIniConfig::GetNextEntry (wxString& WXUNUSED(str), long& WXUNUSED(lIndex)) const
{
wxFAIL_MSG("not implemented");
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
{
wxFAIL_MSG("not implemented");
{
wxFAIL_MSG("not implemented");
}
bool wxIniConfig::HasEntry(const wxString& WXUNUSED(strName)) const
{
wxFAIL_MSG("not implemented");
}
bool wxIniConfig::HasEntry(const wxString& WXUNUSED(strName)) const
{
wxFAIL_MSG("not implemented");
}
// is current group empty?
}
// is current group empty?
GetPrivateProfileString(m_strGroup, NULL, "",
szBuf, WXSIZEOF(szBuf), m_strLocalFilename);
if ( !::IsEmpty(szBuf) )
GetPrivateProfileString(m_strGroup, NULL, "",
szBuf, WXSIZEOF(szBuf), m_strLocalFilename);
if ( !::IsEmpty(szBuf) )
GetProfileString(m_strGroup, NULL, "", szBuf, WXSIZEOF(szBuf));
if ( !::IsEmpty(szBuf) )
GetProfileString(m_strGroup, NULL, "", szBuf, WXSIZEOF(szBuf));
if ( !::IsEmpty(szBuf) )
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
}
if ( ::IsEmpty(szBuf) )
}
if ( ::IsEmpty(szBuf) )
}
bool wxIniConfig::DoReadLong(const wxString& szKey, long *pl) const
}
bool wxIniConfig::DoReadLong(const wxString& szKey, long *pl) const
if ( lVal != nMagic ) {
// the value was read from the file
*pl = lVal;
if ( lVal != nMagic ) {
// the value was read from the file
*pl = lVal;
}
// is it really nMagic?
}
// is it really nMagic?
if ( lVal != nMagic2 ) {
// the nMagic it returned was indeed read from the file
*pl = lVal;
if ( lVal != nMagic2 ) {
// the nMagic it returned was indeed read from the file
*pl = lVal;
}
// CS : I have no idea why they should look up in win.ini
}
// CS : I have no idea why they should look up in win.ini
// no, it was just returning the default value, so now look in win.ini
*pl = GetProfileInt(GetVendorName(), GetKeyName(szKey), *pl);
// no, it was just returning the default value, so now look in win.ini
*pl = GetProfileInt(GetVendorName(), GetKeyName(szKey), *pl);
}
bool wxIniConfig::DoWriteString(const wxString& szKey, const wxString& szValue)
}
bool wxIniConfig::DoWriteString(const wxString& szKey, const wxString& szValue)
if (WritePrivateProfileString(m_strGroup, strKey,
(const char*) NULL, m_strLocalFilename) == 0)
if (WritePrivateProfileString(m_strGroup, strKey,
(const char*) NULL, m_strLocalFilename) == 0)
if ( !bGroupIfEmptyAlso || !IsEmpty() )
if ( !bGroupIfEmptyAlso || !IsEmpty() )
// delete the current group too
bool bOk = WritePrivateProfileString(m_strGroup, NULL,
// delete the current group too
bool bOk = WritePrivateProfileString(m_strGroup, NULL,
if ( wxFile::Exists(strFile) && !wxRemoveFile(strFile) ) {
wxLogSysError(_("Can't delete the INI file '%s'"), strFile.c_str());
if ( wxFile::Exists(strFile) && !wxRemoveFile(strFile) ) {
wxLogSysError(_("Can't delete the INI file '%s'"), strFile.c_str());
}
bool wxIniConfig::RenameEntry(const wxString& WXUNUSED(oldName),
const wxString& WXUNUSED(newName))
{
// Not implemented
}
bool wxIniConfig::RenameEntry(const wxString& WXUNUSED(oldName),
const wxString& WXUNUSED(newName))
{
// Not implemented
}
bool wxIniConfig::RenameGroup(const wxString& WXUNUSED(oldName),
const wxString& WXUNUSED(newName))
{
// Not implemented
}
bool wxIniConfig::RenameGroup(const wxString& WXUNUSED(oldName),
const wxString& WXUNUSED(newName))
{
// Not implemented