Develop and Download Open Source Software

Browse CVS Repository

Annotation of /gikonavigoeson/gikonavi/gikoNavi.dpr

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.39 - (hide annotations) (download)
Sun Feb 4 14:12:52 2007 UTC (17 years, 2 months ago) by h677
Branch: MAIN
CVS Tags: v1_55_0_692, v1_55_0_693
Changes since 1.38: +3 -1 lines
NG・?シ・ノ、ホウネト・コ?ネ

1 hi_ 1.1 program gikoNavi;
2    
3     {%ToDo 'gikoNavi.todo'}
4    
5     uses
6 yoffy 1.14 Windows,
7 hi_ 1.1 SysUtils,
8     Forms,
9     Messages,
10     MainForm in 'MainForm.pas' {MainWindow},
11     Giko in 'Giko.pas' {GikoForm},
12     Splash in 'Splash.pas' {SplashWindow},
13     About in 'About.pas' {AboutDialog},
14     Option in 'Option.pas' {OptionDialog},
15     Editor in 'Editor.pas' {EditorForm},
16     Round in 'Round.pas' {RoundDialog},
17     ListSelect in 'ListSelect.pas' {ListSelectDialog},
18     Search in 'Search.pas' {SearchDialog},
19     GikoSystem in 'GikoSystem.pas',
20     Setting in 'Setting.pas',
21     BoardGroup in 'BoardGroup.pas',
22     Sort in 'Sort.pas',
23     ThreadControl in 'ThreadControl.pas',
24     ItemDownload in 'ItemDownload.pas',
25     RoundData in 'RoundData.pas',
26     RoundName in 'RoundName.pas' {RoundNameDialog},
27     NewBoard in 'NewBoard.pas' {NewBoardDialog},
28     Dolib in 'Dolib.pas',
29     UBase64 in 'Encrypt\UBase64.pas',
30     UCryptAuto in 'Encrypt\UCryptAuto.pas',
31     KeySetting in 'KeySetting.pas' {KeySettingForm},
32     FavoriteAdd in 'FavoriteAdd.pas' {FavoriteAddDialog},
33     NewFavoriteFolder in 'NewFavoriteFolder.pas' {NewFavoriteFolderDialog},
34     FavoriteArrange in 'FavoriteArrange.pas' {FavoriteArrangeDialog},
35     Favorite in 'Favorite.pas' {FavoriteDM: TDataModule},
36     AddressHistory in 'AddressHistory.pas' {AddressHistoryDM: TDataModule},
37     Preview in 'Preview.pas',
38     HTMLDocumentEvent in 'HTMLDocumentEvent.pas',
39     Kotehan in 'Kotehan.pas' {KotehanDialog},
40     HintWindow in 'HintWindow.pas',
41 yoffy 1.2 GikoUtil in 'GikoUtil.pas',
42     ToolBarSetting in 'ToolBarSetting.pas' {ToolBarSettingDialog},
43     ToolBarUtil in 'ToolBarUtil.pas',
44 h677 1.3 YofUtils in 'YofUtils.pas',
45 h677 1.4 AbonUnit in 'AbonUnit.pas',
46 yoffy 1.5 IndividualAbon in 'IndividualAbon.pas' {IndividualAbonForm},
47     Trip in 'Trip.pas',
48 yoffy 1.7 GikoXMLDoc in 'GikoXMLDoc.pas',
49 yoffy 1.8 ExternalBoardManager in 'ExternalBoardManager.pas',
50     ExternalThreadItem in 'ExternalThreadItem.pas',
51     ExternalBoardItem in 'ExternalBoardItem.pas',
52     ExternalBoardPlugInMain in 'ExternalBoardPlugInMain.pas',
53 h677 1.15 ExternalFilePath in 'ExternalFilePath.pas',
54 genyakun 1.17 MojuUtils in 'MojuUtils.pas',
55     crc in 'gzip_delphi2\crc.pas',
56     gzip in 'gzip_delphi2\gzip.pas',
57     zlib in 'gzip_delphi2\zlib.pas',
58     bmRegExp in 'bmRegExp\bmregexp.pas',
59     GikoCoolBar in 'Component\GikoCoolBar.pas',
60     GikoListView in 'Component\GikoListView.pas',
61 genyakun 1.19 GikoPanel in 'Component\GikoPanel.pas',
62 yoffy 1.21 KuroutSetting in 'KuroutSetting.pas' {KuroutOption},
63 yoffy 1.22 GikoDB in 'GikoDB.pas',
64     GestureModel in 'GestureModel.pas',
65 yoffy 1.23 Gesture in 'Gesture.pas',
66 h677 1.24 GikoBayesian in 'GikoBayesian.pas',
67 h677 1.25 Y_TextConverter in 'res\ExternalBoardPlugIn\Y_TextConverter.pas',
68 h677 1.26 HTMLCreate in 'HTMLCreate.pas',
69 h677 1.27 ListViewUtils in 'ListViewUtils.pas',
70 h677 1.29 GikoDataModule in 'GikoDataModule.pas' {GikoDM: TDataModule},
71 h677 1.30 BrowserRecord in 'BrowserRecord.pas',
72 h677 1.32 GikoMessage in 'GikoMessage.pas',
73     InputAssist in 'InputAssist.pas' {InputAssistForm},
74 h677 1.34 InputAssistDataModule in 'InputAssistDataModule.pas' {InputAssistDM: TDataModule},
75 h677 1.35 DefaultFileManager in 'DefaultFileManager.pas',
76 h677 1.36 MoveHistoryItem in 'MoveHistoryItem.pas',
77 h677 1.37 SambaTimer in 'SambaTimer.pas',
78 h677 1.38 HistoryList in 'HistoryList.pas',
79 h677 1.39 NewBoardURL in 'NewBoardURL.pas' {NewBoardURLForm},
80     NGWordUnit in 'NGWordUnit.pas',
81     NGWordEdit in 'NGWordEdit.pas' {NGWordEditForm};
82 hi_ 1.1
83     {$R *.RES}
84     {$R gikoResource.res}
85    
86     var
87     hMutex: THandle;
88     Wnd{, AppWnd}: HWnd;
89     i: Integer;
90     CDS: TCopyDataStruct;
91     const
92     MutexString: string = 'gikoNaviInstance';
93     begin
94     hMutex := OpenMutex(MUTEX_ALL_ACCESS, False, PChar(MutexString));
95     if hMutex <> 0 then begin
96     //?ス~?ス?ス?ス[?スe?スb?スN?スX?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?スN?ス?ス?ス?ス?ス~
97     Wnd := FindWindow('TGikoForm', nil);
98     if Wnd <> 0 then begin
99     //?ス?ス?ス?ス?スN?ス?ス?ス?ス?ス?ス?スM?スR?スi?スr?ス?ス?スA?スN?スe?スB?スu?ス?ス?ス?ス?スA?スC?スR?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス
100 h677 1.31 try
101     SetForegroundWindow(Wnd);
102     except
103     //?ス?ス?ス?ス?ス?ス?ス?ス?スI?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?スt?スH?スA?スO?ス?ス?スE?ス?ス?スh?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?スO?ス?ス?ス?ス
104     end;
105 hi_ 1.1 if IsIconic(Wnd) then
106     SendMessage(Wnd, WM_SYSCOMMAND, SC_RESTORE, -1);
107     // AppWnd := GetWindowLong(Wnd, GWL_HWNDPARENT);
108     // if (AppWnd <> 0) and (IsIconic(AppWnd)) then
109     // SendMessage(AppWnd, WM_SYSCOMMAND, SC_RESTORE, -1);
110    
111     //?ス?ス?スA?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?スN?ス?ス?ス?ス?ス?ス?スM?スR?スi?スr?ス?ス?ス?ス?ス?ス
112     for i := 1 to ParamCount do begin
113     CDS.dwData := 0;
114     CDS.cbData := Length(ParamStr(i)) + 1;
115     GetMem(CDS.lpData, CDS.cbData);
116     try
117     StrPCopy(CDS.lpData, ParamStr(i));
118     SendMessage(Wnd, WM_COPYDATA, 0, LParam(@CDS));
119     finally
120     FreeMem(CDS.lpData);
121     end;
122     end;
123     end;
124 yoffy 1.6
125 hi_ 1.1 CloseHandle(hMutex);
126     end else begin
127     //?ス~?ス?ス?ス[?スe?スb?スN?スX?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?ス?スA?スv?ス?ス?スP?ス[?スV?ス?ス?ス?ス?スN?ス?ス?ス?ス?スs
128     hMutex := CreateMutex(nil, False, PChar(MutexString));
129     Application.Initialize;
130     Application.Title := '?スM?スR?スi?スr';
131     Application.ShowMainForm := False;
132     Application.CreateForm(TMainWindow, MainWindow);
133     Application.CreateForm(TFavoriteDM, FavoriteDM);
134     Application.CreateForm(TAddressHistoryDM, AddressHistoryDM);
135 h677 1.28 Application.CreateForm(TGikoDM, GikoDM);
136 h677 1.32 Application.CreateForm(TInputAssistDM, InputAssistDM);
137 hi_ 1.1 Application.CreateForm(TGikoForm, GikoForm);
138     Application.Run;
139     ReleaseMutex(hMutex);
140     end;
141     end.
142    

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