Browse Source

Introjucer: improved some rollover help.

tags/2021-05-28
jules 13 years ago
parent
commit
74eb65090f
2 changed files with 22 additions and 2 deletions
  1. +2
    -1
      extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h
  2. +20
    -1
      extras/Introjucer/Source/Utility/jucer_JucerTreeViewBase.h

+ 2
- 1
extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h View File

@@ -114,7 +114,8 @@ public:
if (projectType.isGUIApplication() && ! iOS)
{
props.add (new TextPropertyComponent (getSetting ("documentExtensions"), "Document file extensions", 128, false),
"A comma-separated list of file extensions for documents that your app can open.");
"A comma-separated list of file extensions for documents that your app can open. "
"Using a leading '.' is optional, and the extensions are not case-sensitive.");
}
else if (iOS)
{


+ 20
- 1
extras/Introjucer/Source/Utility/jucer_JucerTreeViewBase.h View File

@@ -160,6 +160,25 @@ public:
rootItem->deleteAllSelectedItems();
}
void setEmptyTreeMessage (const String& newMessage)
{
if (emptyTreeMessage != newMessage)
{
emptyTreeMessage = newMessage;
repaint();
}
}
void paint (Graphics& g)
{
if (emptyTreeMessage.isNotEmpty() && (rootItem == nullptr || rootItem->getNumSubItems() == 0))
{
g.setColour (findColour (mainBackgroundColourId).contrasting (0.7f));
g.setFont (13.0f);
g.drawFittedText (emptyTreeMessage, getLocalBounds().reduced (4, 2), Justification::centred, 50);
}
}
void resized()
{
tree.setBounds (getAvailableBounds());
@@ -174,7 +193,7 @@ public:
ScopedPointer<JucerTreeViewBase> rootItem;
private:
String opennessStateKey;
String opennessStateKey, emptyTreeMessage;
};
//==============================================================================


Loading…
Cancel
Save