##// END OF EJS Templates
Small GUI fix, show full names in repository tree view...
Small GUI fix, show full names in repository tree view Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1420:3c3e24550401
r1461:021e7c505ad4
Show More
FindVariableOperation.cpp
75 lines | 1.9 KiB | text/x-c | CppLexer
/ gui / src / Visualization / operations / FindVariableOperation.cpp
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 #include "Visualization/operations/FindVariableOperation.h"
#include "Visualization/VisualizationGraphWidget.h"
#include "Visualization/VisualizationTabWidget.h"
#include "Visualization/VisualizationWidget.h"
#include "Visualization/VisualizationZoneWidget.h"
Switched to new TS impl but quite broken!...
r1420 #include <Variable/Variable2.h>
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735
Switched to new TS impl but quite broken!...
r1420 struct FindVariableOperation::FindVariableOperationPrivate
{
explicit FindVariableOperationPrivate(std::shared_ptr<Variable2> variable)
: m_Variable { variable }
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 {
}
Switched to new TS impl but quite broken!...
r1420 void visit(IVisualizationWidget* widget)
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 {
Switched to new TS impl but quite broken!...
r1420 if (m_Variable && widget && widget->contains(*m_Variable))
{
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 m_Containers.insert(widget);
}
}
Switched to new TS impl but quite broken!...
r1420 std::shared_ptr<Variable2> m_Variable; ///< Variable to find
std::set<IVisualizationWidget*> m_Containers; ///< Containers found for the variable
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 };
Switched to new TS impl but quite broken!...
r1420 FindVariableOperation::FindVariableOperation(std::shared_ptr<Variable2> variable)
: impl { spimpl::make_unique_impl<FindVariableOperationPrivate>(variable) }
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 {
}
Switched to new TS impl but quite broken!...
r1420 void FindVariableOperation::visitEnter(VisualizationWidget* widget)
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 {
impl->visit(widget);
}
Switched to new TS impl but quite broken!...
r1420 void FindVariableOperation::visitLeave(VisualizationWidget* widget)
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 {
// Does nothing
Q_UNUSED(widget);
}
Switched to new TS impl but quite broken!...
r1420 void FindVariableOperation::visitEnter(VisualizationTabWidget* tabWidget)
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 {
impl->visit(tabWidget);
}
Switched to new TS impl but quite broken!...
r1420 void FindVariableOperation::visitLeave(VisualizationTabWidget* tabWidget)
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 {
// Does nothing
Q_UNUSED(tabWidget);
}
Switched to new TS impl but quite broken!...
r1420 void FindVariableOperation::visitEnter(VisualizationZoneWidget* zoneWidget)
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 {
impl->visit(zoneWidget);
}
Switched to new TS impl but quite broken!...
r1420 void FindVariableOperation::visitLeave(VisualizationZoneWidget* zoneWidget)
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 {
// Does nothing
Q_UNUSED(zoneWidget);
}
Switched to new TS impl but quite broken!...
r1420 void FindVariableOperation::visit(VisualizationGraphWidget* graphWidget)
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 {
impl->visit(graphWidget);
}
Switched to new TS impl but quite broken!...
r1420 std::set<IVisualizationWidget*> FindVariableOperation::result() const noexcept
Alexandre Leroux
Prohibits the plot of a variable in several graphs (1)...
r735 {
return impl->m_Containers;
}