47
46
// Legend->setMinimumSize(80,80);
49
connect(Chart ,SIGNAL(CursorInfo(QString,QString,QString,QString))
50
,MainWindow ,SLOT(ShowCursorInfo(QString,QString,QString,QString)));
48
connect(Chart ,SIGNAL(CursorPositionChanged(sPhysPair,sPhysPair
50
,this ,SIGNAL(CursorPositionChanged(sPhysPair,sPhysPair
52
//! @todo{elegancy} не логичнее ли перенести это связывание в главное окно?
53
connect(this ,SIGNAL(CursorPositionChanged(sPhysPair,sPhysPair
55
,MainWindow ,SLOT(ShowCursorInfo(sPhysPair,sPhysPair
51
58
connect(Evolution,SIGNAL(Changed()),Legend,SLOT(OnNetChange()));
52
59
connect(Evolution,SIGNAL(Changed()),Chart,SLOT(OnNetChange()));
53
60
Evolution->Initiate();
54
61
UpdatingTimer = new QTimer(this);
55
62
connect(UpdatingTimer, SIGNAL(timeout()), Evolution, SLOT(Update()));
56
UpdatingTimer->start(UpdatingPeriod);
63
UpdatingTimer->start(sNavigator::UpdatingPeriod);
58
65
Chart->AllowCurveDrops();
109
114
Splitter->setSizes(List);
112
WidgetConfig |= attr("Scale.From.X",S.From.X);
113
WidgetConfig |= attr("Scale.To.X",S.To.X);
114
WidgetConfig |= attr("Scale.From.Y",S.From.Y);
115
WidgetConfig |= attr("Scale.To.Y",S.To.Y);
116
R=WidgetConfig->GetAttr("Scale.From.X");
118
S.From.X = ((sPhysValue)(*R)).Value();
119
R=WidgetConfig->GetAttr("Scale.To.X");
121
S.To.X = ((sPhysValue)(*R)).Value();
122
R=WidgetConfig->GetAttr("Scale.From.Y");
124
S.From.Y = ((sPhysValue)(*R)).Value();
125
R=WidgetConfig->GetAttr("Scale.To.Y");
127
S.To.Y = ((sPhysValue)(*R)).Value();
117
Chart->RestoreScales(WidgetConfig);
137
126
WidgetConfig << attr("Splitter.Orientation",Splitter->orientation());
138
127
WidgetConfig << attr("Splitter.Part1",Splitter->sizes().at(0));
139
128
WidgetConfig << attr("Splitter.Part2",Splitter->sizes().at(1));
140
WidgetConfig << attr("Scale.From.X",Chart->Scale().From.X)
141
<< attr("Scale.To.X",Chart->Scale().To.X)
142
<< attr("Scale.From.Y",Chart->Scale().From.Y)
143
<< attr("Scale.To.Y",Chart->Scale().To.Y);
129
Chart->StoreScales(WidgetConfig);