File: fileseldlg.cpp

package info (click to toggle)
rtklib 2.4.3%2Bdfsg1-2.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 41,796 kB
  • sloc: cpp: 51,592; ansic: 50,584; fortran: 987; makefile: 861; sh: 45
file content (84 lines) | stat: -rw-r--r-- 2,755 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#include "plotmain.h"
#include "fileseldlg.h"

//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"

TFileSelDialog *FileSelDialog;

//---------------------------------------------------------------------------
__fastcall TFileSelDialog::TFileSelDialog(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TFileSelDialog::FormShow(TObject *Sender)
{
	DirSel->Directory=Dir;
	Panel5->Visible=false;
}
//---------------------------------------------------------------------------
void __fastcall TFileSelDialog::FormResize(TObject *Sender)
{
	Panel5->Width=Width-16;
}
//---------------------------------------------------------------------------
void __fastcall TFileSelDialog::DriveSelClick(TObject *Sender)
{
	Panel5->Visible=false;
}
//---------------------------------------------------------------------------
void __fastcall TFileSelDialog::DirLabelClick(TObject *Sender)
{
	Panel5->Visible=!Panel5->Visible;
}
//---------------------------------------------------------------------------
void __fastcall TFileSelDialog::Panel4Click(TObject *Sender)
{
	Panel5->Visible=!Panel5->Visible;
}
//---------------------------------------------------------------------------
void __fastcall TFileSelDialog::BtnDirSelClick(TObject *Sender)
{
	Panel5->Visible=!Panel5->Visible;
}
//---------------------------------------------------------------------------
void __fastcall TFileSelDialog::DirSelChange(TObject *Sender)
{
	Dir=DirSel->Directory;
	Panel5->Height=DirSel->Count*DirSel->ItemHeight+8;
	if (Panel5->Height>312) Panel5->Height=312;
	Panel5->Visible=false;
}
//---------------------------------------------------------------------------
void __fastcall TFileSelDialog::FileListClick(TObject *Sender)
{
	TStringList *file=new TStringList;
	file->Add(FileList->FileName);
	Plot->ReadSol(file,0);
	delete file;
	Panel5->Visible=false;
}
//---------------------------------------------------------------------------
void __fastcall TFileSelDialog::FileListMouseDown(TObject *Sender,
      TMouseButton Button, TShiftState Shift, int X, int Y)
{
	Panel5->Visible=false;
}
//---------------------------------------------------------------------------
void __fastcall TFileSelDialog::FilterClick(TObject *Sender)
{
	Panel5->Visible=false;
}
//---------------------------------------------------------------------------
void __fastcall TFileSelDialog::BtnUpdateClick(TObject *Sender)
{
	FileList->Update();
}
//---------------------------------------------------------------------------