1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
jules 2007-08-09 13:30:12 +00:00
parent 7dc5e33d52
commit b2515db681
2 changed files with 10 additions and 8 deletions

View file

@ -746,7 +746,7 @@ public:
const Font& font_,
const Colour& colour_,
const int oldCaretPos_,
const int newCaretPos_)
const int newCaretPos_) throw()
: owner (owner_),
text (text_),
insertIndex (insertIndex_),
@ -795,7 +795,7 @@ public:
const int endIndex_,
const int oldCaretPos_,
const int newCaretPos_,
const VoidArray& removedSections_)
const VoidArray& removedSections_) throw()
: owner (owner_),
startIndex (startIndex_),
endIndex (endIndex_),
@ -1873,7 +1873,8 @@ bool TextEditor::keyPressed (const KeyPress& key)
cut();
}
else if (key == KeyPress (T('c'), ModifierKeys::commandModifier, 0))
else if (key == KeyPress (T('c'), ModifierKeys::commandModifier, 0)
|| key == KeyPress (KeyPress::insertKey, ModifierKeys::ctrlModifier, 0))
{
newTransaction();
copy();
@ -1884,7 +1885,8 @@ bool TextEditor::keyPressed (const KeyPress& key)
copy();
cut();
}
else if (key == KeyPress (T('v'), ModifierKeys::commandModifier, 0))
else if (key == KeyPress (T('v'), ModifierKeys::commandModifier, 0)
|| key == KeyPress (KeyPress::insertKey, ModifierKeys::shiftModifier, 0))
{
newTransaction();
paste();

View file

@ -103,7 +103,7 @@ FileBrowserComponent::FileBrowserComponent (FileChooserMode mode_,
fileListComponent->addListener (this);
addAndMakeVisible (currentPathBox = new ComboBox (T("path")));
addAndMakeVisible (currentPathBox = new ComboBox ("path"));
currentPathBox->setEditableText (true);
StringArray rootNames, rootPaths;
@ -127,12 +127,12 @@ FileBrowserComponent::FileBrowserComponent (FileChooserMode mode_,
filenameBox->addListener (this);
filenameBox->setReadOnly (filenameTextBoxIsReadOnly);
Label* label = new Label (T("f"), (mode == chooseDirectoryMode) ? TRANS("folder:")
: TRANS("file:"));
Label* label = new Label ("f", (mode == chooseDirectoryMode) ? TRANS("folder:")
: TRANS("file:"));
addAndMakeVisible (label);
label->attachToComponent (filenameBox, true);
addAndMakeVisible (goUpButton = new DrawableButton (T("up"), DrawableButton::ImageOnButtonBackground));
addAndMakeVisible (goUpButton = new DrawableButton ("up", DrawableButton::ImageOnButtonBackground));
Path arrowPath;
arrowPath.addArrow (50.0f, 100.0f, 50.0f, 0.0, 40.0f, 100.0f, 50.0f);
DrawablePath arrowImage;