git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55431
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
//-----------------------------------------------------------------------------
// wxXPMHandler
//-----------------------------------------------------------------------------
// wxXPMHandler
DECLARE_DYNAMIC_CLASS(wxXPMHandler)
};
DECLARE_DYNAMIC_CLASS(wxXPMHandler)
};
*/
#ifndef wxUSE_FILECONFIG
*/
#ifndef wxUSE_FILECONFIG
+# if wxUSE_CONFIG && wxUSE_TEXTFILE
# define wxUSE_FILECONFIG 1
# else
# define wxUSE_FILECONFIG 0
# define wxUSE_FILECONFIG 1
# else
# define wxUSE_FILECONFIG 0
// specified text file as the source of tips (each line is a tip).
//
// NB: the caller is responsible for deleting the pointer!
// specified text file as the source of tips (each line is a tip).
//
// NB: the caller is responsible for deleting the pointer!
WXDLLIMPEXP_ADV wxTipProvider *wxCreateFileTipProvider(const wxString& filename,
size_t currentTip);
WXDLLIMPEXP_ADV wxTipProvider *wxCreateFileTipProvider(const wxString& filename,
size_t currentTip);
+#endif // wxUSE_TEXTFILE
// ----------------------------------------------------------------------------
// wxTipDialog
// ----------------------------------------------------------------------------
// wxTipDialog
// an implementation which takes the tips from the text file - each line
// represents a tip
// an implementation which takes the tips from the text file - each line
// represents a tip
class WXDLLIMPEXP_ADV wxFileTipProvider : public wxTipProvider
{
public:
class WXDLLIMPEXP_ADV wxFileTipProvider : public wxTipProvider
{
public:
DECLARE_NO_COPY_CLASS(wxFileTipProvider)
};
DECLARE_NO_COPY_CLASS(wxFileTipProvider)
};
+#endif // wxUSE_TEXTFILE
#ifdef __WIN32__
// TODO an implementation which takes the tips from the given registry key
#ifdef __WIN32__
// TODO an implementation which takes the tips from the given registry key
// ----------------------------------------------------------------------------
// wxFileTipProvider
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxFileTipProvider
// ----------------------------------------------------------------------------
wxFileTipProvider::wxFileTipProvider(const wxString& filename,
size_t currentTip)
: wxTipProvider(currentTip), m_textfile(filename)
wxFileTipProvider::wxFileTipProvider(const wxString& filename,
size_t currentTip)
: wxTipProvider(currentTip), m_textfile(filename)
+#endif // wxUSE_TEXTFILE
// ----------------------------------------------------------------------------
// wxTipDialog
// ----------------------------------------------------------------------------
// wxTipDialog
// our public interface
// ----------------------------------------------------------------------------
// our public interface
// ----------------------------------------------------------------------------
wxTipProvider *wxCreateFileTipProvider(const wxString& filename,
size_t currentTip)
{
return new wxFileTipProvider(filename, currentTip);
}
wxTipProvider *wxCreateFileTipProvider(const wxString& filename,
size_t currentTip)
{
return new wxFileTipProvider(filename, currentTip);
}
+#endif // wxUSE_TEXTFILE
bool wxShowTip(wxWindow *parent,
wxTipProvider *tipProvider,
bool wxShowTip(wxWindow *parent,
wxTipProvider *tipProvider,
// auto-completion
// ----------------------------------------------------------------------------
// auto-completion
// ----------------------------------------------------------------------------
bool wxTextEntry::AutoCompleteFileNames()
{
#ifdef HAS_AUTOCOMPLETE
bool wxTextEntry::AutoCompleteFileNames()
{
#ifdef HAS_AUTOCOMPLETE
return false;
#endif // HAS_AUTOCOMPLETE/!HAS_AUTOCOMPLETE
}
return false;
#endif // HAS_AUTOCOMPLETE/!HAS_AUTOCOMPLETE
}
// ----------------------------------------------------------------------------
// editable state
// ----------------------------------------------------------------------------
// editable state