Browse Source

Added a missing implementation in ConcertinaPanel

tags/2021-05-28
jules 10 years ago
parent
commit
e02d7fc544
2 changed files with 8 additions and 2 deletions
  1. +5
    -0
      modules/juce_gui_basics/layout/juce_ConcertinaPanel.cpp
  2. +3
    -2
      modules/juce_gui_basics/layout/juce_ConcertinaPanel.h

+ 5
- 0
modules/juce_gui_basics/layout/juce_ConcertinaPanel.cpp View File

@@ -282,6 +282,11 @@ ConcertinaPanel::ConcertinaPanel()
ConcertinaPanel::~ConcertinaPanel() {}
int ConcertinaPanel::getNumPanels() const noexcept
{
return holders.size();
}
Component* ConcertinaPanel::getPanel (int index) const noexcept
{
if (PanelHolder* h = holders[index])


+ 3
- 2
modules/juce_gui_basics/layout/juce_ConcertinaPanel.h View File

@@ -85,7 +85,7 @@ public:
expanded to that size. Otherwise, it'll fill as much of the total
space as possible.
*/
bool expandPanelFully (Component* panelComponent, const bool animate);
bool expandPanelFully (Component* panelComponent, bool animate);
/** Sets a maximum size for one of the panels. */
void setMaximumPanelSize (Component* panelComponent, int maximumSize);
@@ -100,7 +100,8 @@ public:
virtual ~LookAndFeelMethods() {}
virtual void drawConcertinaPanelHeader (Graphics&, const Rectangle<int>& area,
bool isMouseOver, bool isMouseDown, ConcertinaPanel&, Component&) = 0;
bool isMouseOver, bool isMouseDown,
ConcertinaPanel&, Component&) = 0;
};
private:


Loading…
Cancel
Save