|
|
|
@@ -42,7 +42,7 @@ public: |
|
|
|
|
|
|
|
XmlElement* createXmlFor (Component* comp, const ComponentLayout* layout)
|
|
|
|
{
|
|
|
|
TabbedComponent* const t = dynamic_cast <TabbedComponent*> (comp);
|
|
|
|
TabbedComponent* const t = dynamic_cast<TabbedComponent*> (comp);
|
|
|
|
XmlElement* const e = ComponentTypeHandler::createXmlFor (comp, layout);
|
|
|
|
|
|
|
|
if (t->getOrientation() == TabbedButtonBar::TabsAtTop) e->setAttribute ("orientation", "top");
|
|
|
|
@@ -64,7 +64,7 @@ public: |
|
|
|
if (! ComponentTypeHandler::restoreFromXml (xml, comp, layout))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
TabbedComponent* const t = dynamic_cast <TabbedComponent*> (comp);
|
|
|
|
TabbedComponent* const t = dynamic_cast<TabbedComponent*> (comp);
|
|
|
|
|
|
|
|
if (xml.getStringAttribute ("orientation") == "top") t->setOrientation (TabbedButtonBar::TabsAtTop);
|
|
|
|
else if (xml.getStringAttribute ("orientation") == "bottom") t->setOrientation (TabbedButtonBar::TabsAtBottom);
|
|
|
|
@@ -92,7 +92,7 @@ public: |
|
|
|
{
|
|
|
|
ComponentTypeHandler::getEditableProperties (component, doc, props);
|
|
|
|
|
|
|
|
TabbedComponent* const t = dynamic_cast <TabbedComponent*> (component);
|
|
|
|
TabbedComponent* const t = dynamic_cast<TabbedComponent*> (component);
|
|
|
|
|
|
|
|
props.add (new TabOrientationProperty (t, doc));
|
|
|
|
props.add (new TabDepthProperty (t, doc));
|
|
|
|
@@ -110,11 +110,11 @@ public: |
|
|
|
{
|
|
|
|
ComponentTypeHandler::addPropertiesToPropertyPanel (comp, doc, panel);
|
|
|
|
|
|
|
|
TabbedComponent* const t = dynamic_cast <TabbedComponent*> (comp);
|
|
|
|
TabbedComponent* const t = dynamic_cast<TabbedComponent*> (comp);
|
|
|
|
|
|
|
|
for (int i = 0; i < t->getNumTabs(); ++i)
|
|
|
|
{
|
|
|
|
Array <PropertyComponent*> properties;
|
|
|
|
Array<PropertyComponent*> properties;
|
|
|
|
|
|
|
|
properties.add (new TabNameProperty (t, doc, i));
|
|
|
|
properties.add (new TabColourProperty (t, doc, i));
|
|
|
|
@@ -136,7 +136,7 @@ public: |
|
|
|
|
|
|
|
String getCreationParameters (GeneratedCode&, Component* comp)
|
|
|
|
{
|
|
|
|
TabbedComponent* const t = dynamic_cast <TabbedComponent*> (comp);
|
|
|
|
TabbedComponent* const t = dynamic_cast<TabbedComponent*> (comp);
|
|
|
|
|
|
|
|
switch (t->getOrientation())
|
|
|
|
{
|
|
|
|
@@ -152,7 +152,7 @@ public: |
|
|
|
|
|
|
|
void fillInCreationCode (GeneratedCode& code, Component* component, const String& memberVariableName)
|
|
|
|
{
|
|
|
|
TabbedComponent* const t = dynamic_cast <TabbedComponent*> (component);
|
|
|
|
TabbedComponent* const t = dynamic_cast<TabbedComponent*> (component);
|
|
|
|
|
|
|
|
ComponentTypeHandler::fillInCreationCode (code, component, memberVariableName);
|
|
|
|
|
|
|
|
@@ -223,7 +223,7 @@ public: |
|
|
|
xml->setAttribute ("name", tc->getTabNames() [tabIndex]);
|
|
|
|
xml->setAttribute ("colour", tc->getTabBackgroundColour (tabIndex).toString());
|
|
|
|
|
|
|
|
if (TabDemoContentComp* const tdc = dynamic_cast <TabDemoContentComp*> (tc->getTabContentComponent (tabIndex)))
|
|
|
|
if (TabDemoContentComp* const tdc = dynamic_cast<TabDemoContentComp*> (tc->getTabContentComponent (tabIndex)))
|
|
|
|
{
|
|
|
|
xml->setAttribute ("useJucerComp", tdc->isUsingJucerComp);
|
|
|
|
xml->setAttribute ("contentClassName", tdc->contentClassName);
|
|
|
|
@@ -239,11 +239,11 @@ public: |
|
|
|
tc->setTabName (tabIndex, xml.getStringAttribute ("name", "Tab"));
|
|
|
|
tc->setTabBackgroundColour (tabIndex, Colour::fromString (xml.getStringAttribute ("colour", Colours::lightgrey.toString())));
|
|
|
|
|
|
|
|
if (TabDemoContentComp* const tdc = dynamic_cast <TabDemoContentComp*> (tc->getTabContentComponent (tabIndex)))
|
|
|
|
if (TabDemoContentComp* const tdc = dynamic_cast<TabDemoContentComp*> (tc->getTabContentComponent (tabIndex)))
|
|
|
|
{
|
|
|
|
tdc->isUsingJucerComp = xml.getBoolAttribute ("useJucerComp", false);
|
|
|
|
tdc->contentClassName = xml.getStringAttribute ("contentClassName");
|
|
|
|
tdc->constructorParams = xml.getStringAttribute ("constructorParams");
|
|
|
|
tdc->isUsingJucerComp = xml.getBoolAttribute ("useJucerComp", false);
|
|
|
|
tdc->contentClassName = xml.getStringAttribute ("contentClassName");
|
|
|
|
tdc->constructorParams = xml.getStringAttribute ("constructorParams");
|
|
|
|
tdc->jucerComponentFile = xml.getStringAttribute ("jucerComponentFile");
|
|
|
|
|
|
|
|
tdc->updateContent();
|
|
|
|
@@ -253,7 +253,7 @@ public: |
|
|
|
//==============================================================================
|
|
|
|
static bool isTabUsingJucerComp (TabbedComponent* tc, int tabIndex)
|
|
|
|
{
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast <TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast<TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
jassert (tdc != nullptr);
|
|
|
|
|
|
|
|
return tdc != 0 && tdc->isUsingJucerComp;
|
|
|
|
@@ -261,7 +261,7 @@ public: |
|
|
|
|
|
|
|
static void setTabUsingJucerComp (TabbedComponent* tc, int tabIndex, const bool b)
|
|
|
|
{
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast <TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast<TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
jassert (tdc != nullptr);
|
|
|
|
|
|
|
|
if (tdc != nullptr)
|
|
|
|
@@ -273,7 +273,7 @@ public: |
|
|
|
|
|
|
|
static String getTabClassName (TabbedComponent* tc, int tabIndex)
|
|
|
|
{
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast <TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast<TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
jassert (tdc != nullptr);
|
|
|
|
|
|
|
|
return tdc != 0 ? tdc->contentClassName : String::empty;
|
|
|
|
@@ -281,7 +281,7 @@ public: |
|
|
|
|
|
|
|
static void setTabClassName (TabbedComponent* tc, int tabIndex, const String& newName)
|
|
|
|
{
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast <TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast<TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
jassert (tdc != nullptr);
|
|
|
|
|
|
|
|
if (tdc != nullptr)
|
|
|
|
@@ -293,7 +293,7 @@ public: |
|
|
|
|
|
|
|
static String getTabConstructorParams (TabbedComponent* tc, int tabIndex)
|
|
|
|
{
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast <TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast<TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
jassert (tdc != nullptr);
|
|
|
|
|
|
|
|
return tdc != 0 ? tdc->constructorParams : String::empty;
|
|
|
|
@@ -301,7 +301,7 @@ public: |
|
|
|
|
|
|
|
static void setTabConstructorParams (TabbedComponent* tc, int tabIndex, const String& newParams)
|
|
|
|
{
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast <TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast<TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
jassert (tdc != nullptr);
|
|
|
|
|
|
|
|
if (tdc != nullptr)
|
|
|
|
@@ -313,7 +313,7 @@ public: |
|
|
|
|
|
|
|
static String getTabJucerFile (TabbedComponent* tc, int tabIndex)
|
|
|
|
{
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast <TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast<TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
jassert (tdc != nullptr);
|
|
|
|
|
|
|
|
return tdc != 0 ? tdc->jucerComponentFile : String::empty;
|
|
|
|
@@ -321,7 +321,7 @@ public: |
|
|
|
|
|
|
|
static void setTabJucerFile (TabbedComponent* tc, int tabIndex, const String& newFile)
|
|
|
|
{
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast <TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
TabDemoContentComp* const tdc = dynamic_cast<TabDemoContentComp*> (tc->getTabContentComponent (tabIndex));
|
|
|
|
jassert (tdc != nullptr);
|
|
|
|
|
|
|
|
if (tdc != nullptr)
|
|
|
|
@@ -396,11 +396,11 @@ private: |
|
|
|
};
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
class TabOrientationProperty : public ComponentChoiceProperty <TabbedComponent>
|
|
|
|
class TabOrientationProperty : public ComponentChoiceProperty<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabOrientationProperty (TabbedComponent* comp, JucerDocument& doc)
|
|
|
|
: ComponentChoiceProperty <TabbedComponent> ("tab position", comp, doc)
|
|
|
|
: ComponentChoiceProperty<TabbedComponent> ("tab position", comp, doc)
|
|
|
|
{
|
|
|
|
choices.add ("Tabs at top");
|
|
|
|
choices.add ("Tabs at bottom");
|
|
|
|
@@ -434,11 +434,11 @@ private: |
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
class TabOrienationChangeAction : public ComponentUndoableAction <TabbedComponent>
|
|
|
|
class TabOrienationChangeAction : public ComponentUndoableAction<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabOrienationChangeAction (TabbedComponent* const comp, ComponentLayout& l, const TabbedButtonBar::Orientation newState_)
|
|
|
|
: ComponentUndoableAction <TabbedComponent> (comp, l),
|
|
|
|
: ComponentUndoableAction<TabbedComponent> (comp, l),
|
|
|
|
newState (newState_)
|
|
|
|
{
|
|
|
|
oldState = comp->getOrientation();
|
|
|
|
@@ -465,11 +465,11 @@ private: |
|
|
|
};
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
class TabInitialTabProperty : public ComponentChoiceProperty <TabbedComponent>
|
|
|
|
class TabInitialTabProperty : public ComponentChoiceProperty<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabInitialTabProperty (TabbedComponent* comp, JucerDocument& doc)
|
|
|
|
: ComponentChoiceProperty <TabbedComponent> ("initial tab", comp, doc)
|
|
|
|
: ComponentChoiceProperty<TabbedComponent> ("initial tab", comp, doc)
|
|
|
|
{
|
|
|
|
for (int i = 0; i < comp->getNumTabs(); ++i)
|
|
|
|
choices.add ("Tab " + String (i) + ": \"" + comp->getTabNames() [i] + "\"");
|
|
|
|
@@ -487,11 +487,11 @@ private: |
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
class InitialTabChangeAction : public ComponentUndoableAction <TabbedComponent>
|
|
|
|
class InitialTabChangeAction : public ComponentUndoableAction<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
InitialTabChangeAction (TabbedComponent* const comp, ComponentLayout& l, const int newValue_)
|
|
|
|
: ComponentUndoableAction <TabbedComponent> (comp, l),
|
|
|
|
: ComponentUndoableAction<TabbedComponent> (comp, l),
|
|
|
|
newValue (newValue_)
|
|
|
|
{
|
|
|
|
oldValue = comp->getCurrentTabIndex();
|
|
|
|
@@ -558,11 +558,11 @@ private: |
|
|
|
JucerDocument& document;
|
|
|
|
|
|
|
|
private:
|
|
|
|
class TabDepthChangeAction : public ComponentUndoableAction <TabbedComponent>
|
|
|
|
class TabDepthChangeAction : public ComponentUndoableAction<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabDepthChangeAction (TabbedComponent* const comp, ComponentLayout& l, const int newState_)
|
|
|
|
: ComponentUndoableAction <TabbedComponent> (comp, l),
|
|
|
|
: ComponentUndoableAction<TabbedComponent> (comp, l),
|
|
|
|
newState (newState_)
|
|
|
|
{
|
|
|
|
oldState = comp->getTabBarDepth();
|
|
|
|
@@ -614,7 +614,7 @@ private: |
|
|
|
JucerDocument& document;
|
|
|
|
|
|
|
|
private:
|
|
|
|
class AddTabAction : public ComponentUndoableAction <TabbedComponent>
|
|
|
|
class AddTabAction : public ComponentUndoableAction<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AddTabAction (TabbedComponent* const comp, ComponentLayout& l)
|
|
|
|
@@ -680,7 +680,7 @@ private: |
|
|
|
JucerDocument& document;
|
|
|
|
|
|
|
|
private:
|
|
|
|
class RemoveTabAction : public ComponentUndoableAction <TabbedComponent>
|
|
|
|
class RemoveTabAction : public ComponentUndoableAction<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RemoveTabAction (TabbedComponent* const comp, ComponentLayout& l, int indexToRemove_)
|
|
|
|
@@ -717,11 +717,11 @@ private: |
|
|
|
};
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
class TabNameProperty : public ComponentTextProperty <TabbedComponent>
|
|
|
|
class TabNameProperty : public ComponentTextProperty<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabNameProperty (TabbedComponent* comp, JucerDocument& doc, const int tabIndex_)
|
|
|
|
: ComponentTextProperty <TabbedComponent> ("name", 200, false, comp, doc),
|
|
|
|
: ComponentTextProperty<TabbedComponent> ("name", 200, false, comp, doc),
|
|
|
|
tabIndex (tabIndex_)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
@@ -740,11 +740,11 @@ private: |
|
|
|
private:
|
|
|
|
int tabIndex;
|
|
|
|
|
|
|
|
class TabNameChangeAction : public ComponentUndoableAction <TabbedComponent>
|
|
|
|
class TabNameChangeAction : public ComponentUndoableAction<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabNameChangeAction (TabbedComponent* const comp, ComponentLayout& l, const int tabIndex_, const String& newValue_)
|
|
|
|
: ComponentUndoableAction <TabbedComponent> (comp, l),
|
|
|
|
: ComponentUndoableAction<TabbedComponent> (comp, l),
|
|
|
|
tabIndex (tabIndex_),
|
|
|
|
newValue (newValue_)
|
|
|
|
{
|
|
|
|
@@ -817,12 +817,12 @@ private: |
|
|
|
JucerDocument& document;
|
|
|
|
int tabIndex;
|
|
|
|
|
|
|
|
class TabColourChangeAction : public ComponentUndoableAction <TabbedComponent>
|
|
|
|
class TabColourChangeAction : public ComponentUndoableAction<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabColourChangeAction (TabbedComponent* comp, ComponentLayout& l,
|
|
|
|
int tabIndex_, Colour newValue_)
|
|
|
|
: ComponentUndoableAction <TabbedComponent> (comp, l),
|
|
|
|
: ComponentUndoableAction<TabbedComponent> (comp, l),
|
|
|
|
tabIndex (tabIndex_),
|
|
|
|
newValue (newValue_)
|
|
|
|
{
|
|
|
|
@@ -852,11 +852,11 @@ private: |
|
|
|
};
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
class TabContentTypeProperty : public ComponentChoiceProperty <TabbedComponent>
|
|
|
|
class TabContentTypeProperty : public ComponentChoiceProperty<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabContentTypeProperty (TabbedComponent* comp, JucerDocument& doc, const int tabIndex_)
|
|
|
|
: ComponentChoiceProperty <TabbedComponent> ("content type", comp, doc),
|
|
|
|
: ComponentChoiceProperty<TabbedComponent> ("content type", comp, doc),
|
|
|
|
tabIndex (tabIndex_)
|
|
|
|
{
|
|
|
|
choices.add ("Jucer content component");
|
|
|
|
@@ -877,11 +877,11 @@ private: |
|
|
|
private:
|
|
|
|
int tabIndex;
|
|
|
|
|
|
|
|
class TabContentTypeChangeAction : public ComponentUndoableAction <TabbedComponent>
|
|
|
|
class TabContentTypeChangeAction : public ComponentUndoableAction<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabContentTypeChangeAction (TabbedComponent* const comp, ComponentLayout& l, const int tabIndex_, const bool newValue_)
|
|
|
|
: ComponentUndoableAction <TabbedComponent> (comp, l),
|
|
|
|
: ComponentUndoableAction<TabbedComponent> (comp, l),
|
|
|
|
tabIndex (tabIndex_),
|
|
|
|
newValue (newValue_)
|
|
|
|
{
|
|
|
|
@@ -952,11 +952,11 @@ private: |
|
|
|
JucerDocument& document;
|
|
|
|
int tabIndex;
|
|
|
|
|
|
|
|
class JucerCompFileChangeAction : public ComponentUndoableAction <TabbedComponent>
|
|
|
|
class JucerCompFileChangeAction : public ComponentUndoableAction<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
JucerCompFileChangeAction (TabbedComponent* const comp, ComponentLayout& l, const int tabIndex_, const String& newState_)
|
|
|
|
: ComponentUndoableAction <TabbedComponent> (comp, l),
|
|
|
|
: ComponentUndoableAction<TabbedComponent> (comp, l),
|
|
|
|
tabIndex (tabIndex_),
|
|
|
|
newState (newState_)
|
|
|
|
{
|
|
|
|
@@ -985,11 +985,11 @@ private: |
|
|
|
};
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
class TabContentClassProperty : public ComponentTextProperty <TabbedComponent>
|
|
|
|
class TabContentClassProperty : public ComponentTextProperty<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabContentClassProperty (TabbedComponent* comp, JucerDocument& doc, const int tabIndex_)
|
|
|
|
: ComponentTextProperty <TabbedComponent> ("content class", 256, false, comp, doc),
|
|
|
|
: ComponentTextProperty<TabbedComponent> ("content class", 256, false, comp, doc),
|
|
|
|
tabIndex (tabIndex_)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
@@ -1008,11 +1008,11 @@ private: |
|
|
|
private:
|
|
|
|
int tabIndex;
|
|
|
|
|
|
|
|
class TabClassNameChangeAction : public ComponentUndoableAction <TabbedComponent>
|
|
|
|
class TabClassNameChangeAction : public ComponentUndoableAction<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabClassNameChangeAction (TabbedComponent* const comp, ComponentLayout& l, const int tabIndex_, const String& newValue_)
|
|
|
|
: ComponentUndoableAction <TabbedComponent> (comp, l),
|
|
|
|
: ComponentUndoableAction<TabbedComponent> (comp, l),
|
|
|
|
tabIndex (tabIndex_),
|
|
|
|
newValue (newValue_)
|
|
|
|
{
|
|
|
|
@@ -1043,11 +1043,11 @@ private: |
|
|
|
};
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
class TabContentConstructorParamsProperty : public ComponentTextProperty <TabbedComponent>
|
|
|
|
class TabContentConstructorParamsProperty : public ComponentTextProperty<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabContentConstructorParamsProperty (TabbedComponent* comp, JucerDocument& doc, const int tabIndex_)
|
|
|
|
: ComponentTextProperty <TabbedComponent> ("constructor params", 512, false, comp, doc),
|
|
|
|
: ComponentTextProperty<TabbedComponent> ("constructor params", 512, false, comp, doc),
|
|
|
|
tabIndex (tabIndex_)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
@@ -1066,11 +1066,11 @@ private: |
|
|
|
private:
|
|
|
|
int tabIndex;
|
|
|
|
|
|
|
|
class TabConstructorParamChangeAction : public ComponentUndoableAction <TabbedComponent>
|
|
|
|
class TabConstructorParamChangeAction : public ComponentUndoableAction<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabConstructorParamChangeAction (TabbedComponent* const comp, ComponentLayout& l, const int tabIndex_, const String& newValue_)
|
|
|
|
: ComponentUndoableAction <TabbedComponent> (comp, l),
|
|
|
|
: ComponentUndoableAction<TabbedComponent> (comp, l),
|
|
|
|
tabIndex (tabIndex_),
|
|
|
|
newValue (newValue_)
|
|
|
|
{
|
|
|
|
@@ -1138,12 +1138,12 @@ private: |
|
|
|
const int tabIndex, totalNumTabs;
|
|
|
|
|
|
|
|
private:
|
|
|
|
class MoveTabAction : public ComponentUndoableAction <TabbedComponent>
|
|
|
|
class MoveTabAction : public ComponentUndoableAction<TabbedComponent>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MoveTabAction (TabbedComponent* const comp, ComponentLayout& l,
|
|
|
|
const int oldIndex_, const int newIndex_)
|
|
|
|
: ComponentUndoableAction <TabbedComponent> (comp, l),
|
|
|
|
: ComponentUndoableAction<TabbedComponent> (comp, l),
|
|
|
|
oldIndex (oldIndex_),
|
|
|
|
newIndex (newIndex_)
|
|
|
|
{
|
|
|
|
|