Skip to content

Commit 8a94405

Browse files
committed
update
1 parent 4525b61 commit 8a94405

54 files changed

Lines changed: 7508 additions & 268 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LineTest.plf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2 2 PBase PBase1 128 55 49 12 1 big_system ������� 0 - - (0,0) (0,0) (0,0) 2 (0,0) (515000,0) PBase PBase2 355 108 77 12 1 consumer ����������� 1 - - (1.4e+08,1.2e+08) (1.4e+08,1.2e+08) (1.4e+08,1.2e+08) 1 PBase1 PBase2 w1 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 300 0.0722 0.0765645 0.0765645 0.0765645 0.53 1e-08 0 1000 0 1.5708 35 35 35 35 0.5 0.6 1090 0.0275 0.011 1490 1000 400 14.5 14.5 3 0.73 1000 2 0 (-12,27.2) (0,27.2) (12,27.2) (-9,32.2) (9,32.2) 0 1

LineTest.plf.500

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2 2 PBase PBase1 128 55 49 12 1 big_system ������� 0 - - (0,0) (0,0) (0,0) 2 (0,0) (515000,0) PBase PBase2 355 108 77 12 1 consumer ����������� 1 - - (2.13333e+08,1.4e+08) (2.13333e+08,1.4e+08) (2.13333e+08,1.4e+08) 1 PBase1 PBase2 w1 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 200 0.0722 0.0722 0.0722 0.0722 0.53 1e-08 0 500 0 1.5708 20 20 20 20 0.5 0.6 1090 0.0275 0.011 1490 1000 400 14.5 14.5 3 0.73 1000 2 0 (-12,27.2) (0,27.2) (12,27.2) (-9,32.2) (9,32.2) 0 1

PNGImage/pngimage.dcu

-133 Bytes
Binary file not shown.

PNGImage/pngimage.obj

-60 Bytes
Binary file not shown.

PNGImage/pnglang.dcu

0 Bytes
Binary file not shown.

PNGImage/pnglang.obj

-1 Bytes
Binary file not shown.

PNGImage/zlibpas.dcu

0 Bytes
Binary file not shown.

PNGImage/zlibpas.obj

-1 Bytes
Binary file not shown.

Testing/Погрешность АОПЛ на ЛЭП с распредел парам.xmcd

Lines changed: 4753 additions & 0 deletions
Large diffs are not rendered by default.

components/Base/PBase.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "line_parameters.h"
1414
typedef TfrmProperty HelpForm; // êëàññ ôîðìû êîòîðàÿ áóäåò âûçâàíà â êà÷åñòâå ôîðìû ñâîéñòâ
1515
typedef TfrmLine_parameters LineParametersForm; // êëàññ ôîðìû êîòîðàÿ áóäåò âûçâàíà â êà÷åñòâå ôîðìû ïàðàìåòðîâ ëèíèè
16+
extern vector<LineParametersForm*> LineParametersForms;
1617
//---------------------------------------------------------------------------
1718
static inline void ValidCtrCheck(PBase *)
1819
{
@@ -312,12 +313,14 @@ PLinkComponent::PLinkComponent(TComponent *owner){
312313
}
313314
//---------------------------------------------------------------------------
314315
PLinkComponent::~PLinkComponent(){
316+
/*
315317
vector<link*>::iterator iter = Links.begin();
316318
while( iter != Links.end() )
317319
{
318320
delete *iter;
319321
++iter;
320-
}
322+
} */
323+
Clear();
321324
}
322325
//---------------------------------------------------------------------------
323326
void __fastcall PLinkComponent::MenuItemClick(TObject *Sender){
@@ -346,6 +349,7 @@ void __fastcall PLinkComponent::MenuItemClick(TObject *Sender){
346349
LineParametersForm *frmP = new LineParametersForm(NULL);
347350
frmP->Line = Links[menuFor];
348351
frmP->Show();
352+
LineParametersForms.push_back(frmP);
349353
}
350354
}
351355
//---------------------------------------------------------------------------
@@ -471,6 +475,13 @@ void __fastcall PLinkComponent::Paint(){
471475
}
472476
//---------------------------------------------------------------------------
473477
void PLinkComponent::Clear(){
478+
// çàêðûâàåì ôîðìû
479+
for(int i=0, n=LineParametersForms.size(); i<n; i++){
480+
LineParametersForms[i]->Timer->Enabled = false;
481+
delete LineParametersForms[i]; LineParametersForms[i] = NULL;
482+
}
483+
LineParametersForms.clear();
484+
// î÷èùàåì îáúåêòû
474485
vector<link*>::iterator iter = Links.begin();
475486
while( iter != Links.end() )
476487
{

0 commit comments

Comments
 (0)