Develop and Download Open Source Software

Browse Subversion Repository

Contents of /CopalPro/OpenFile.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Thu Jul 28 09:05:52 2011 UTC (12 years, 9 months ago) by kaityo
File MIME type: text/x-c++src
File size: 1161 byte(s)
First Commit
1 //---------------------------------------------------------------------------
2 #include <vcl.h>
3 #pragma hdrstop
4
5 #include "OpenFile.h"
6 //---------------------------------------------------------------------------
7 #pragma package(smart_init)
8 #pragma resource "*.dfm"
9 TFOpenFile *FOpenFile;
10 //---------------------------------------------------------------------------
11 __fastcall TFOpenFile::TFOpenFile(TComponent* Owner)
12 : TForm(Owner) {}
13 //---------------------------------------------------------------------------
14 bool
15 TFOpenFile::Execute(void) {
16 EdText->Text = FMain->GetCopalConfig()->SaveResultFile;
17 int mr = ShowModal();
18
19 if(mr == mrOk) {
20 FileName = EdText->Text;
21 return true;
22 } else {
23 return false;
24 }
25 }
26 //---------------------------------------------------------------------------
27 void __fastcall
28 TFOpenFile::BtBrouseClick(TObject *Sender) {
29 AnsiString Temp = GetCurrentDir();
30 if(!OpenDialog->Execute()) {
31 return;
32 }
33 EdText->Text = OpenDialog->FileName;
34 EdText->SetFocus();
35 SetCurrentDir(Temp);
36 }
37 //---------------------------------------------------------------------------
38

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26