##// 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
RescaleAxeOperation.cpp
79 lines | 2.4 KiB | text/x-c | CppLexer
Add rescale operation to permit to rescale axe widget
r435 #include "Visualization/operations/RescaleAxeOperation.h"
#include "Visualization/VisualizationGraphWidget.h"
Q_LOGGING_CATEGORY(LOG_RescaleAxeOperation, "RescaleAxeOperation")
Switched to new TS impl but quite broken!...
r1420 struct RescaleAxeOperation::RescaleAxeOperationPrivate
{
explicit RescaleAxeOperationPrivate(
std::shared_ptr<Variable2> variable, const DateTimeRange& range)
: m_Variable { variable }, m_Range { range }
Add rescale operation to permit to rescale axe widget
r435 {
}
Switched to new TS impl but quite broken!...
r1420 std::shared_ptr<Variable2> m_Variable;
Renamed SqpRange to DateTimeRange, introduced VariableController2 to...
r1346 DateTimeRange m_Range;
Add rescale operation to permit to rescale axe widget
r435 };
Switched to new TS impl but quite broken!...
r1420 RescaleAxeOperation::RescaleAxeOperation(
std::shared_ptr<Variable2> variable, const DateTimeRange& range)
: impl { spimpl::make_unique_impl<RescaleAxeOperationPrivate>(variable, range) }
Add rescale operation to permit to rescale axe widget
r435 {
}
Switched to new TS impl but quite broken!...
r1420 void RescaleAxeOperation::visitEnter(VisualizationWidget* widget)
Add rescale operation to permit to rescale axe widget
r435 {
// VisualizationWidget is not intended to contain a variable
Q_UNUSED(widget)
}
Switched to new TS impl but quite broken!...
r1420 void RescaleAxeOperation::visitLeave(VisualizationWidget* widget)
Add rescale operation to permit to rescale axe widget
r435 {
// VisualizationWidget is not intended to contain a variable
Q_UNUSED(widget)
}
Switched to new TS impl but quite broken!...
r1420 void RescaleAxeOperation::visitEnter(VisualizationTabWidget* tabWidget)
Add rescale operation to permit to rescale axe widget
r435 {
// VisualizationTabWidget is not intended to contain a variable
Q_UNUSED(tabWidget)
}
Switched to new TS impl but quite broken!...
r1420 void RescaleAxeOperation::visitLeave(VisualizationTabWidget* tabWidget)
Add rescale operation to permit to rescale axe widget
r435 {
// VisualizationTabWidget is not intended to contain a variable
Q_UNUSED(tabWidget)
}
Switched to new TS impl but quite broken!...
r1420 void RescaleAxeOperation::visitEnter(VisualizationZoneWidget* zoneWidget)
Add rescale operation to permit to rescale axe widget
r435 {
// VisualizationZoneWidget is not intended to contain a variable
Q_UNUSED(zoneWidget)
}
Switched to new TS impl but quite broken!...
r1420 void RescaleAxeOperation::visitLeave(VisualizationZoneWidget* zoneWidget)
Add rescale operation to permit to rescale axe widget
r435 {
// VisualizationZoneWidget is not intended to contain a variable
Q_UNUSED(zoneWidget)
}
Switched to new TS impl but quite broken!...
r1420 void RescaleAxeOperation::visit(VisualizationGraphWidget* graphWidget)
Add rescale operation to permit to rescale axe widget
r435 {
Switched to new TS impl but quite broken!...
r1420 if (graphWidget)
{
Correction for MR
r447 // If the widget contains the variable, rescale it
Switched to new TS impl but quite broken!...
r1420 if (impl->m_Variable && graphWidget->contains(*impl->m_Variable))
{
Alexandre Leroux
Corrects the problem of refreshing synchronized graphs from TimeWidget (2)...
r1272 // During rescale, acquisition for the graph is disabled but synchronization is still
// enabled
graphWidget->setFlags(GraphFlag::EnableSynchronization);
Many synchronization fixes, most operations works, only product drag from tree is broken...
r1377 graphWidget->setGraphRange(impl->m_Range, true);
Alexandre Leroux
Corrects the problem of refreshing synchronized graphs from TimeWidget (1)...
r1271 graphWidget->setFlags(GraphFlag::EnableAll);
Add rescale operation to permit to rescale axe widget
r435 }
}
Switched to new TS impl but quite broken!...
r1420 else
{
qCCritical(
LOG_RescaleAxeOperation(), "Can't visit VisualizationGraphWidget : the widget is null");
Add rescale operation to permit to rescale axe widget
r435 }
}