Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxDefaultCoord, TRUE/true, FALSE/false, !!/!IsEmpty().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -177,7 +177,7 @@ typedef void (wxEvtHandler::*wxFindDialogEventFunction)(wxFindDialogEvent&);
|
||||
|
||||
#define EVT_FIND(id, fn) \
|
||||
DECLARE_EVENT_TABLE_ENTRY( \
|
||||
wxEVT_COMMAND_FIND, id, -1, \
|
||||
wxEVT_COMMAND_FIND, id, wxID_ANY, \
|
||||
(wxObjectEventFunction)(wxEventFunction)(wxFindDialogEventFunction) \
|
||||
& fn, \
|
||||
(wxObject *) NULL \
|
||||
@@ -185,7 +185,7 @@ typedef void (wxEvtHandler::*wxFindDialogEventFunction)(wxFindDialogEvent&);
|
||||
|
||||
#define EVT_FIND_NEXT(id, fn) \
|
||||
DECLARE_EVENT_TABLE_ENTRY( \
|
||||
wxEVT_COMMAND_FIND_NEXT, id, -1, \
|
||||
wxEVT_COMMAND_FIND_NEXT, id, wxID_ANY, \
|
||||
(wxObjectEventFunction)(wxEventFunction)(wxFindDialogEventFunction) \
|
||||
& fn, \
|
||||
(wxObject *) NULL \
|
||||
@@ -193,7 +193,7 @@ typedef void (wxEvtHandler::*wxFindDialogEventFunction)(wxFindDialogEvent&);
|
||||
|
||||
#define EVT_FIND_REPLACE(id, fn) \
|
||||
DECLARE_EVENT_TABLE_ENTRY( \
|
||||
wxEVT_COMMAND_FIND_REPLACE, id, -1, \
|
||||
wxEVT_COMMAND_FIND_REPLACE, id, wxID_ANY, \
|
||||
(wxObjectEventFunction)(wxEventFunction)(wxFindDialogEventFunction) \
|
||||
& fn, \
|
||||
(wxObject *) NULL \
|
||||
@@ -201,7 +201,7 @@ typedef void (wxEvtHandler::*wxFindDialogEventFunction)(wxFindDialogEvent&);
|
||||
|
||||
#define EVT_FIND_REPLACE_ALL(id, fn) \
|
||||
DECLARE_EVENT_TABLE_ENTRY( \
|
||||
wxEVT_COMMAND_FIND_REPLACE_ALL, id, -1, \
|
||||
wxEVT_COMMAND_FIND_REPLACE_ALL, id, wxID_ANY, \
|
||||
(wxObjectEventFunction)(wxEventFunction)(wxFindDialogEventFunction) \
|
||||
& fn, \
|
||||
(wxObject *) NULL \
|
||||
@@ -209,7 +209,7 @@ typedef void (wxEvtHandler::*wxFindDialogEventFunction)(wxFindDialogEvent&);
|
||||
|
||||
#define EVT_FIND_CLOSE(id, fn) \
|
||||
DECLARE_EVENT_TABLE_ENTRY( \
|
||||
wxEVT_COMMAND_FIND_CLOSE, id, -1, \
|
||||
wxEVT_COMMAND_FIND_CLOSE, id, wxID_ANY, \
|
||||
(wxObjectEventFunction)(wxEventFunction)(wxFindDialogEventFunction) \
|
||||
& fn, \
|
||||
(wxObject *) NULL \
|
||||
|
@@ -89,7 +89,7 @@
|
||||
in the entries it reads: for example, if you have an entry
|
||||
score_file = $HOME/.score
|
||||
a call to Read(&str, "score_file") will return a complete path to .score file
|
||||
unless the expansion was previousle disabled with SetExpandEnvVars(FALSE) call
|
||||
unless the expansion was previousle disabled with SetExpandEnvVars(false) call
|
||||
(it's on by default, the current status can be retrieved with
|
||||
IsExpandingEnvVars function).
|
||||
*/
|
||||
@@ -150,18 +150,18 @@ public:
|
||||
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 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 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();
|
||||
|
||||
@@ -211,7 +211,7 @@ private:
|
||||
*m_pCurrentGroup; // the current group
|
||||
|
||||
wxMBConv &m_conv;
|
||||
|
||||
|
||||
#ifdef __UNIX__
|
||||
int m_umask; // the umask to use for file creation
|
||||
#endif // __UNIX__
|
||||
@@ -222,6 +222,6 @@ private:
|
||||
#endif
|
||||
// wxUSE_CONFIG
|
||||
|
||||
#endif
|
||||
#endif
|
||||
//_FILECONF_H
|
||||
|
||||
|
@@ -124,7 +124,7 @@ wxFileSelector(const wxChar *message = wxFileSelectorPromptStr,
|
||||
const wxChar *wildcard = wxFileSelectorDefaultWildcardStr,
|
||||
int flags = 0,
|
||||
wxWindow *parent = NULL,
|
||||
int x = -1, int y = -1);
|
||||
int x = wxDefaultCoord, int y = wxDefaultCoord);
|
||||
|
||||
// An extended version of wxFileSelector
|
||||
WXDLLEXPORT wxString
|
||||
@@ -135,7 +135,7 @@ wxFileSelectorEx(const wxChar *message = wxFileSelectorPromptStr,
|
||||
const wxChar *wildcard = wxFileSelectorDefaultWildcardStr,
|
||||
int flags = 0,
|
||||
wxWindow *parent = NULL,
|
||||
int x = -1, int y = -1);
|
||||
int x = wxDefaultCoord, int y = wxDefaultCoord);
|
||||
|
||||
// Ask for filename to load
|
||||
WXDLLEXPORT wxString
|
||||
|
@@ -92,7 +92,7 @@ enum wxSeekMode
|
||||
#if wxUSE_UNICODE
|
||||
#if wxUSE_UNICODE_MSLU
|
||||
#define wxOpen wxMSLU__wopen
|
||||
|
||||
|
||||
#define wxAccess wxMSLU__waccess
|
||||
#define wxMkDir wxMSLU__wmkdir
|
||||
#define wxRmDir wxMSLU__wrmdir
|
||||
@@ -157,11 +157,11 @@ enum wxSeekMode
|
||||
#define wxTell(fd) lseek(fd, 0, SEEK_CUR)
|
||||
|
||||
#define wxStructStat struct stat
|
||||
|
||||
|
||||
#if wxUSE_UNICODE
|
||||
# define wxNEED_WX_UNISTD_H
|
||||
#if defined(__MWERKS__) && defined(macintosh)
|
||||
#include <sys/stat.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
#if defined(__DMC__)
|
||||
typedef unsigned long mode_t;
|
||||
@@ -237,16 +237,16 @@ WXDLLIMPEXP_BASE wxString wxFindNextFile();
|
||||
WXDLLIMPEXP_BASE bool wxIsWild(const wxString& pattern);
|
||||
|
||||
// Does the pattern match the text (usually a filename)?
|
||||
// If dot_special is TRUE, doesn't match * against . (eliminating
|
||||
// If dot_special is true, doesn't match * against . (eliminating
|
||||
// `hidden' dot files)
|
||||
WXDLLIMPEXP_BASE bool wxMatchWild(const wxString& pattern, const wxString& text, bool dot_special = TRUE);
|
||||
WXDLLIMPEXP_BASE bool wxMatchWild(const wxString& pattern, const wxString& text, bool dot_special = true);
|
||||
|
||||
// Concatenate two files to form third
|
||||
WXDLLIMPEXP_BASE bool wxConcatFiles(const wxString& file1, const wxString& file2, const wxString& file3);
|
||||
|
||||
// Copy file1 to file2
|
||||
WXDLLIMPEXP_BASE bool wxCopyFile(const wxString& file1, const wxString& file2,
|
||||
bool overwrite = TRUE);
|
||||
bool overwrite = true);
|
||||
|
||||
// Remove file
|
||||
WXDLLIMPEXP_BASE bool wxRemoveFile(const wxString& file);
|
||||
@@ -316,16 +316,16 @@ WXDLLIMPEXP_BASE bool wxRmdir(const wxString& dir, int flags = 0);
|
||||
// this is useful for wxString::IsSameAs(): to compare two file names use
|
||||
// filename1.IsSameAs(filename2, wxARE_FILENAMES_CASE_SENSITIVE)
|
||||
#if defined(__UNIX__) && !defined(__DARWIN__) && !defined(__OS2__)
|
||||
#define wxARE_FILENAMES_CASE_SENSITIVE TRUE
|
||||
#define wxARE_FILENAMES_CASE_SENSITIVE true
|
||||
#else // Windows, Mac OS and OS/2
|
||||
#define wxARE_FILENAMES_CASE_SENSITIVE FALSE
|
||||
#define wxARE_FILENAMES_CASE_SENSITIVE false
|
||||
#endif // Unix/Windows
|
||||
|
||||
// is the char a path separator?
|
||||
inline bool wxIsPathSeparator(wxChar c)
|
||||
{
|
||||
// under DOS/Windows we should understand both Unix and DOS file separators
|
||||
#if ( defined(__UNIX__) && !defined(__OS2__) )|| defined(__MAC__)
|
||||
#if ( defined(__UNIX__) && !defined(__OS2__) )|| defined(__MAC__)
|
||||
return c == wxFILE_SEP_PATH;
|
||||
#else
|
||||
return c == wxFILE_SEP_PATH_DOS || c == wxFILE_SEP_PATH_UNIX;
|
||||
@@ -381,7 +381,7 @@ public:
|
||||
wxString FindAbsoluteValidPath(const wxString& filename);
|
||||
// Given full path and filename, add path to list
|
||||
void EnsureFileAccessible(const wxString& path);
|
||||
// Returns TRUE if the path is in the list
|
||||
// Returns true if the path is in the list
|
||||
bool Member(const wxString& path);
|
||||
|
||||
private:
|
||||
|
@@ -178,7 +178,7 @@ public:
|
||||
|
||||
// is the filename valid at all?
|
||||
bool IsOk() const
|
||||
{
|
||||
{
|
||||
// we're fine if we have the path or the name or if we're a root dir
|
||||
return m_dirs.size() != 0 || !m_name.IsEmpty() || !m_relative;
|
||||
}
|
||||
|
@@ -107,7 +107,7 @@ class WXDLLIMPEXP_BASE wxFileSystemHandler : public wxObject
|
||||
public:
|
||||
wxFileSystemHandler() : wxObject() {}
|
||||
|
||||
// returns TRUE if this handler is able to open given location
|
||||
// returns true if this handler is able to open given location
|
||||
virtual bool CanOpen(const wxString& location) = 0;
|
||||
|
||||
// opens given file and returns pointer to input stream.
|
||||
@@ -165,10 +165,10 @@ public:
|
||||
// sets the current location. Every call to OpenFile is
|
||||
// relative to this location.
|
||||
// NOTE !!
|
||||
// unless is_dir = TRUE 'location' is *not* the directory but
|
||||
// unless is_dir = true 'location' is *not* the directory but
|
||||
// file contained in this directory
|
||||
// (so ChangePathTo("dir/subdir/xh.htm") sets m_Path to "dir/subdir/")
|
||||
void ChangePathTo(const wxString& location, bool is_dir = FALSE);
|
||||
void ChangePathTo(const wxString& location, bool is_dir = false);
|
||||
|
||||
wxString GetPath() const {return m_Path;}
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/flags.h
|
||||
// Purpose: a bitset suited for replacing the current style flags
|
||||
// Purpose: a bitset suited for replacing the current style flags
|
||||
// Author: Stefan Csomor
|
||||
// Modified by:
|
||||
// Modified by:
|
||||
// Created: 27/07/03
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2003 Stefan Csomor
|
||||
@@ -20,16 +20,16 @@
|
||||
// bitwise operators but keeps the type safety and information, the
|
||||
// enums must be in a sequence , their value determines the bit position
|
||||
// that they represent
|
||||
// The api is made as close as possible to <bitset>
|
||||
// The api is made as close as possible to <bitset>
|
||||
|
||||
template <class T> class wxBitset
|
||||
{
|
||||
friend class wxEnumData ;
|
||||
friend class wxEnumData ;
|
||||
public:
|
||||
// creates a wxBitset<> object with all flags initialized to 0
|
||||
wxBitset() { m_data = 0; }
|
||||
|
||||
// created a wxBitset<> object initialized according to the bits of the
|
||||
// created a wxBitset<> object initialized according to the bits of the
|
||||
// integral value val
|
||||
wxBitset(unsigned long val) { m_data = val ; }
|
||||
|
||||
@@ -45,116 +45,116 @@ public:
|
||||
// assignment
|
||||
wxBitset &operator =(const wxBitset &rhs)
|
||||
{
|
||||
m_data = rhs.m_data;
|
||||
return *this;
|
||||
m_data = rhs.m_data;
|
||||
return *this;
|
||||
}
|
||||
|
||||
// bitwise or operator, sets all bits that are in rhs and leaves
|
||||
// the rest unchanged
|
||||
wxBitset &operator |=(const wxBitset &rhs)
|
||||
wxBitset &operator |=(const wxBitset &rhs)
|
||||
{
|
||||
m_data |= rhs.m_data;
|
||||
return *this;
|
||||
m_data |= rhs.m_data;
|
||||
return *this;
|
||||
}
|
||||
|
||||
// bitwsie exclusive-or operator, toggles the value of all bits
|
||||
// that are set in bits and leaves all others unchanged
|
||||
wxBitset &operator ^=(const wxBitset &rhs) // difference
|
||||
{
|
||||
m_data ^= rhs.m_data;
|
||||
return *this;
|
||||
m_data ^= rhs.m_data;
|
||||
return *this;
|
||||
}
|
||||
|
||||
// bitwise and operator, resets all bits that are not in rhs and leaves
|
||||
// all others unchanged
|
||||
wxBitset &operator &=(const wxBitset &rhs) // intersection
|
||||
{
|
||||
m_data &= rhs.m_data;
|
||||
return *this;
|
||||
m_data &= rhs.m_data;
|
||||
return *this;
|
||||
}
|
||||
|
||||
// bitwise or operator, returns a new bitset that has all bits set that set are in
|
||||
// bitwise or operator, returns a new bitset that has all bits set that set are in
|
||||
// bitset2 or in this bitset
|
||||
wxBitset operator |(const wxBitset &bitset2) const // union
|
||||
wxBitset operator |(const wxBitset &bitset2) const // union
|
||||
{
|
||||
wxBitset<T> s;
|
||||
s.m_data = m_data | bitset2.m_data;
|
||||
return s;
|
||||
wxBitset<T> s;
|
||||
s.m_data = m_data | bitset2.m_data;
|
||||
return s;
|
||||
}
|
||||
|
||||
// bitwise exclusive-or operator, returns a new bitset that has all bits set that are set either in
|
||||
// bitwise exclusive-or operator, returns a new bitset that has all bits set that are set either in
|
||||
// bitset2 or in this bitset but not in both
|
||||
wxBitset operator ^(const wxBitset &bitset2) const // difference
|
||||
{
|
||||
wxBitset<T> s;
|
||||
s.m_data = m_data ^ bitset2.m_data;
|
||||
return s;
|
||||
wxBitset<T> s;
|
||||
s.m_data = m_data ^ bitset2.m_data;
|
||||
return s;
|
||||
}
|
||||
|
||||
// bitwise and operator, returns a new bitset that has all bits set that are set both in
|
||||
// bitwise and operator, returns a new bitset that has all bits set that are set both in
|
||||
// bitset2 and in this bitset
|
||||
wxBitset operator &(const wxBitset &bitset2) const // intersection
|
||||
{
|
||||
wxBitset<T> s;
|
||||
s.m_data = m_data & bitset2.m_data;
|
||||
return s;
|
||||
wxBitset<T> s;
|
||||
s.m_data = m_data & bitset2.m_data;
|
||||
return s;
|
||||
}
|
||||
|
||||
// sets appropriate the bit to true
|
||||
wxBitset& set(const T el) //Add element
|
||||
{
|
||||
m_data |= 1 << el;
|
||||
return *this;
|
||||
m_data |= 1 << el;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
// clears the appropriate flag to false
|
||||
wxBitset& reset(const T el) //remove element
|
||||
{
|
||||
m_data &= ~(1 << el);
|
||||
return *this;
|
||||
m_data &= ~(1 << el);
|
||||
return *this;
|
||||
}
|
||||
|
||||
// clear all flags
|
||||
wxBitset& reset()
|
||||
{
|
||||
m_data = 0;
|
||||
return *this;
|
||||
m_data = 0;
|
||||
return *this;
|
||||
}
|
||||
|
||||
// true if this flag is set
|
||||
bool test(const T el) const
|
||||
{
|
||||
return (m_data & (1 << el)) ? true : false;
|
||||
return (m_data & (1 << el)) ? true : false;
|
||||
}
|
||||
|
||||
// true if no flag is set
|
||||
bool none() const
|
||||
{
|
||||
return m_data == 0;
|
||||
return m_data == 0;
|
||||
}
|
||||
|
||||
// true if any flag is set
|
||||
bool any() const
|
||||
{
|
||||
return m_data != 0;
|
||||
return m_data != 0;
|
||||
}
|
||||
|
||||
// true if both have the same flags
|
||||
bool operator ==(const wxBitset &rhs) const
|
||||
{
|
||||
return m_data == rhs.m_data;
|
||||
return m_data == rhs.m_data;
|
||||
}
|
||||
|
||||
// true if both differ in their flags set
|
||||
bool operator !=(const wxBitset &rhs) const
|
||||
{
|
||||
return !operator==(rhs);
|
||||
return !operator==(rhs);
|
||||
}
|
||||
|
||||
bool operator[] (const T el) const { return test(el) ; }
|
||||
|
||||
private :
|
||||
unsigned long m_data;
|
||||
unsigned long m_data;
|
||||
};
|
||||
|
||||
#define WX_DEFINE_FLAGS( flags ) \
|
||||
|
@@ -123,7 +123,7 @@ public:
|
||||
int family, // see wxFontFamily enum
|
||||
int style, // see wxFontStyle enum
|
||||
int weight, // see wxFontWeight enum
|
||||
bool underlined = FALSE, // not underlined by default
|
||||
bool underlined = false, // not underlined by default
|
||||
const wxString& face = wxEmptyString, // facename
|
||||
wxFontEncoding encoding = wxFONTENCODING_DEFAULT); // ISO8859-X, ...
|
||||
|
||||
@@ -184,8 +184,8 @@ public:
|
||||
wxString GetWeightString() const;
|
||||
|
||||
// Unofficial API, don't use
|
||||
virtual void SetNoAntiAliasing( bool WXUNUSED(no) = TRUE ) { }
|
||||
virtual bool GetNoAntiAliasing() const { return FALSE; }
|
||||
virtual void SetNoAntiAliasing( bool WXUNUSED(no) = true ) { }
|
||||
virtual bool GetNoAntiAliasing() const { return false; }
|
||||
|
||||
// the default encoding is used for creating all fonts with default
|
||||
// encoding parameter
|
||||
|
@@ -51,7 +51,7 @@ public:
|
||||
{ InitFontData(data); return Create(parent); }
|
||||
|
||||
protected:
|
||||
virtual bool DoCreate(wxWindow *parent) { m_parent = parent; return TRUE; }
|
||||
virtual bool DoCreate(wxWindow *parent) { m_parent = parent; return true; }
|
||||
|
||||
void InitFontData(const wxFontData *data = NULL)
|
||||
{ if ( data ) m_fontData = *data; }
|
||||
|
@@ -76,51 +76,51 @@ enum wxFontEncoding
|
||||
wxFONTENCODING_UTF32LE, // UTF-32 Little Endian Unicode encoding
|
||||
|
||||
wxFONTENCODING_MACROMAN, // the standard mac encodings
|
||||
wxFONTENCODING_MACJAPANESE,
|
||||
wxFONTENCODING_MACCHINESETRAD,
|
||||
wxFONTENCODING_MACKOREAN,
|
||||
wxFONTENCODING_MACARABIC,
|
||||
wxFONTENCODING_MACHEBREW,
|
||||
wxFONTENCODING_MACGREEK,
|
||||
wxFONTENCODING_MACCYRILLIC,
|
||||
wxFONTENCODING_MACDEVANAGARI,
|
||||
wxFONTENCODING_MACGURMUKHI,
|
||||
wxFONTENCODING_MACGUJARATI,
|
||||
wxFONTENCODING_MACORIYA,
|
||||
wxFONTENCODING_MACBENGALI,
|
||||
wxFONTENCODING_MACTAMIL,
|
||||
wxFONTENCODING_MACTELUGU,
|
||||
wxFONTENCODING_MACKANNADA,
|
||||
wxFONTENCODING_MACMALAJALAM,
|
||||
wxFONTENCODING_MACSINHALESE,
|
||||
wxFONTENCODING_MACBURMESE,
|
||||
wxFONTENCODING_MACKHMER,
|
||||
wxFONTENCODING_MACTHAI,
|
||||
wxFONTENCODING_MACLAOTIAN,
|
||||
wxFONTENCODING_MACGEORGIAN,
|
||||
wxFONTENCODING_MACARMENIAN,
|
||||
wxFONTENCODING_MACCHINESESIMP,
|
||||
wxFONTENCODING_MACTIBETAN,
|
||||
wxFONTENCODING_MACMONGOLIAN,
|
||||
wxFONTENCODING_MACETHIOPIC,
|
||||
wxFONTENCODING_MACCENTRALEUR,
|
||||
wxFONTENCODING_MACVIATNAMESE,
|
||||
wxFONTENCODING_MACARABICEXT,
|
||||
wxFONTENCODING_MACSYMBOL,
|
||||
wxFONTENCODING_MACDINGBATS,
|
||||
wxFONTENCODING_MACTURKISH,
|
||||
wxFONTENCODING_MACCROATIAN,
|
||||
wxFONTENCODING_MACICELANDIC,
|
||||
wxFONTENCODING_MACROMANIAN,
|
||||
wxFONTENCODING_MACCELTIC,
|
||||
wxFONTENCODING_MACGAELIC,
|
||||
wxFONTENCODING_MACKEYBOARD,
|
||||
wxFONTENCODING_MACJAPANESE,
|
||||
wxFONTENCODING_MACCHINESETRAD,
|
||||
wxFONTENCODING_MACKOREAN,
|
||||
wxFONTENCODING_MACARABIC,
|
||||
wxFONTENCODING_MACHEBREW,
|
||||
wxFONTENCODING_MACGREEK,
|
||||
wxFONTENCODING_MACCYRILLIC,
|
||||
wxFONTENCODING_MACDEVANAGARI,
|
||||
wxFONTENCODING_MACGURMUKHI,
|
||||
wxFONTENCODING_MACGUJARATI,
|
||||
wxFONTENCODING_MACORIYA,
|
||||
wxFONTENCODING_MACBENGALI,
|
||||
wxFONTENCODING_MACTAMIL,
|
||||
wxFONTENCODING_MACTELUGU,
|
||||
wxFONTENCODING_MACKANNADA,
|
||||
wxFONTENCODING_MACMALAJALAM,
|
||||
wxFONTENCODING_MACSINHALESE,
|
||||
wxFONTENCODING_MACBURMESE,
|
||||
wxFONTENCODING_MACKHMER,
|
||||
wxFONTENCODING_MACTHAI,
|
||||
wxFONTENCODING_MACLAOTIAN,
|
||||
wxFONTENCODING_MACGEORGIAN,
|
||||
wxFONTENCODING_MACARMENIAN,
|
||||
wxFONTENCODING_MACCHINESESIMP,
|
||||
wxFONTENCODING_MACTIBETAN,
|
||||
wxFONTENCODING_MACMONGOLIAN,
|
||||
wxFONTENCODING_MACETHIOPIC,
|
||||
wxFONTENCODING_MACCENTRALEUR,
|
||||
wxFONTENCODING_MACVIATNAMESE,
|
||||
wxFONTENCODING_MACARABICEXT,
|
||||
wxFONTENCODING_MACSYMBOL,
|
||||
wxFONTENCODING_MACDINGBATS,
|
||||
wxFONTENCODING_MACTURKISH,
|
||||
wxFONTENCODING_MACCROATIAN,
|
||||
wxFONTENCODING_MACICELANDIC,
|
||||
wxFONTENCODING_MACROMANIAN,
|
||||
wxFONTENCODING_MACCELTIC,
|
||||
wxFONTENCODING_MACGAELIC,
|
||||
wxFONTENCODING_MACKEYBOARD,
|
||||
|
||||
wxFONTENCODING_MAX, // highest enumerated encoding value
|
||||
|
||||
wxFONTENCODING_MACMIN = wxFONTENCODING_MACROMAN ,
|
||||
wxFONTENCODING_MACMAX = wxFONTENCODING_MACKEYBOARD ,
|
||||
|
||||
|
||||
// aliases for endian-dependent UTF encodings
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
wxFONTENCODING_UTF16 = wxFONTENCODING_UTF16BE, // native UTF-16
|
||||
|
@@ -92,7 +92,7 @@ private:
|
||||
inline bool HasElements() const;
|
||||
|
||||
public:
|
||||
// init the elements from an XLFD, return TRUE if ok
|
||||
// init the elements from an XLFD, return true if ok
|
||||
bool FromXFontName(const wxString& xFontName);
|
||||
|
||||
// return false if we were never initialized with a valid XLFD
|
||||
@@ -211,13 +211,13 @@ public:
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// translate a wxFontEncoding into native encoding parameter (defined above),
|
||||
// returning TRUE if an (exact) macth could be found, FALSE otherwise (without
|
||||
// returning true if an (exact) macth could be found, false otherwise (without
|
||||
// attempting any substitutions)
|
||||
extern bool wxGetNativeFontEncoding(wxFontEncoding encoding,
|
||||
wxNativeEncodingInfo *info);
|
||||
|
||||
// test for the existence of the font described by this facename/encoding,
|
||||
// return TRUE if such font(s) exist, FALSE otherwise
|
||||
// return true if such font(s) exist, false otherwise
|
||||
extern bool wxTestFontEncoding(const wxNativeEncodingInfo& info);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -91,7 +91,7 @@ public:
|
||||
virtual wxMenuBar *GetMenuBar() const { return m_frameMenuBar; }
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
// process menu command: returns TRUE if processed
|
||||
// process menu command: returns true if processed
|
||||
bool ProcessCommand(int winid);
|
||||
|
||||
// status bar functions
|
||||
@@ -132,7 +132,7 @@ public:
|
||||
#if wxUSE_TOOLBAR
|
||||
// create main toolbar bycalling OnCreateToolBar()
|
||||
virtual wxToolBar* CreateToolBar(long style = -1,
|
||||
wxWindowID winid = -1,
|
||||
wxWindowID winid = wxID_ANY,
|
||||
const wxString& name = wxToolBarNameStr);
|
||||
// return a new toolbar
|
||||
virtual wxToolBar *OnCreateToolBar(long style,
|
||||
@@ -172,13 +172,13 @@ public:
|
||||
#ifndef wxTopLevelWindowNative
|
||||
virtual bool ShowFullScreen(bool WXUNUSED(show),
|
||||
long WXUNUSED(style) = wxFULLSCREEN_ALL)
|
||||
{ return FALSE; }
|
||||
{ return false; }
|
||||
virtual bool IsFullScreen() const
|
||||
{ return FALSE; }
|
||||
{ return false; }
|
||||
#endif // no wxTopLevelWindowNative
|
||||
|
||||
// show help text (typically in the statusbar); show is FALSE
|
||||
// if you are hiding the help, TRUE otherwise
|
||||
// show help text (typically in the statusbar); show is false
|
||||
// if you are hiding the help, true otherwise
|
||||
virtual void DoGiveHelp(const wxString& text, bool show);
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_2
|
||||
@@ -223,7 +223,7 @@ protected:
|
||||
virtual void PositionStatusBar() { }
|
||||
|
||||
// show the help string for this menu item in the given status bar: the
|
||||
// status bar pointer can be NULL; return TRUE if help was shown
|
||||
// status bar pointer can be NULL; return true if help was shown
|
||||
bool ShowMenuHelp(wxStatusBar *statbar, int helpid);
|
||||
|
||||
wxStatusBar *m_frameStatusBar;
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && !defined(__EMX__)
|
||||
// Some older compilers (such as EMX) cannot handle
|
||||
// #pragma interface/implementation correctly, iff
|
||||
// #pragma interface/implementation correctly, iff
|
||||
// #pragma implementation is used in _two_ translation
|
||||
// units (as created by e.g. event.cpp compiled for
|
||||
// libwx_base and event.cpp compiled for libwx_gui_core).
|
||||
|
Reference in New Issue
Block a user