1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-21 01:24:21 +00:00

Added Value support to the Button's toggle state and TextEditor content. Refactored the atomic operation functions to live inside a class called Atomic, and the byte order functions into a class called ByteOrder.

This commit is contained in:
Julian Storer 2010-01-10 22:00:59 +00:00
parent 3ddbc82f9f
commit 18ffeba9da
64 changed files with 3721 additions and 3609 deletions

View file

@ -46,17 +46,10 @@ static const int iconWidth = 80;
class AlertWindowTextEditor : public TextEditor
{
public:
#if JUCE_LINUX
#define PASSWORD_CHAR 0x2022
#else
#define PASSWORD_CHAR 0x25cf
#endif
static const tchar passwordChar;
AlertWindowTextEditor (const String& name,
const bool isPasswordBox)
: TextEditor (name,
isPasswordBox ? (const tchar) PASSWORD_CHAR
: (const tchar) 0)
AlertWindowTextEditor (const String& name, const bool isPasswordBox)
: TextEditor (name, isPasswordBox ? passwordChar : 0)
{
setSelectAllWhenFocused (true);
}
@ -82,6 +75,11 @@ private:
const AlertWindowTextEditor& operator= (const AlertWindowTextEditor&);
};
#if JUCE_LINUX
const tchar AlertWindowTextEditor::passwordChar = 0x2022;
#else
const tchar AlertWindowTextEditor::passwordChar = 0x25cf;
#endif
//==============================================================================
AlertWindow::AlertWindow (const String& title,