forked from mugli/Avro-Keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
11,130 additions
and
10,631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
*.dcu | ||
*.gif | ||
*.2007 | ||
*.tvsconfig | ||
*.jpg | ||
*.bmp | ||
*.psd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,40 @@ | ||
{ | ||
============================================================================= | ||
***************************************************************************** | ||
The contents of this file are subject to the Mozilla Public License | ||
Version 1.1 (the "License"); you may not use this file except in | ||
compliance with the License. You may obtain a copy of the License at | ||
http://www.mozilla.org/MPL/ | ||
============================================================================= | ||
***************************************************************************** | ||
The contents of this file are subject to the Mozilla Public License | ||
Version 1.1 (the "License"); you may not use this file except in | ||
compliance with the License. You may obtain a copy of the License at | ||
http://www.mozilla.org/MPL/ | ||
Software distributed under the License is distributed on an "AS IS" | ||
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | ||
License for the specific language governing rights and limitations | ||
under the License. | ||
Software distributed under the License is distributed on an "AS IS" | ||
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | ||
License for the specific language governing rights and limitations | ||
under the License. | ||
The Original Code is Avro Keyboard 5. | ||
The Original Code is Avro Keyboard 5. | ||
The Initial Developer of the Original Code is | ||
Mehdi Hasan Khan <[email protected]>. | ||
The Initial Developer of the Original Code is | ||
Mehdi Hasan Khan <[email protected]>. | ||
Copyright (C) OmicronLab <http://www.omicronlab.com>. All Rights Reserved. | ||
Copyright (C) OmicronLab <http://www.omicronlab.com>. All Rights Reserved. | ||
Contributor(s): ______________________________________. | ||
Contributor(s): ______________________________________. | ||
***************************************************************************** | ||
============================================================================= | ||
***************************************************************************** | ||
============================================================================= | ||
} | ||
|
||
Program Avro_Keyboard; | ||
|
||
uses | ||
Forms, | ||
Windows, | ||
uForm1 in 'Forms\uForm1.pas' {AvroMainForm1}, | ||
uForm1 in 'Forms\uForm1.pas' { AvroMainForm1 }, | ||
BanglaChars in 'Units\BanglaChars.pas', | ||
nativexml in 'Units\nativexml.pas', | ||
uTopBar in 'Forms\uTopBar.pas' {TopBar}, | ||
uTopBar in 'Forms\uTopBar.pas' { TopBar }, | ||
SkinLoader in 'Units\SkinLoader.pas', | ||
cUtils in 'Units\cUtils.pas', | ||
cArrays in 'Units\cArrays.pas', | ||
cDictionaries in 'Units\cDictionaries.pas', | ||
cStrings in 'Units\cStrings.pas', | ||
cTypes in 'Units\cTypes.pas', | ||
KeyboardLayoutLoader in 'Units\KeyboardLayoutLoader.pas', | ||
clsEnglishToBangla in 'Classes\clsEnglishToBangla.pas', | ||
clsE2BCharBased in 'Classes\clsE2BCharBased.pas', | ||
|
@@ -56,22 +51,21 @@ uses | |
uFileFolderHandling in 'Units\uFileFolderHandling.pas', | ||
u_VirtualFontInstall in 'Units\u_VirtualFontInstall.pas', | ||
u_Admin in 'Units\u_Admin.pas', | ||
uComplexLNotify in 'Forms\uComplexLNotify.pas' {ComplexLNotify}, | ||
ufrmAbout in 'Forms\ufrmAbout.pas' {frmAbout}, | ||
ufrmAboutSkinLayout in 'Forms\ufrmAboutSkinLayout.pas' {frmAboutSkinLayout}, | ||
ufrmAutoCorrect in 'Forms\ufrmAutoCorrect.pas' {frmAutoCorrect}, | ||
ufrmAvroMouse in 'Forms\ufrmAvroMouse.pas' {frmAvroMouse}, | ||
ufrmOptions in 'Forms\ufrmOptions.pas' {frmOptions}, | ||
ufrmPrevW in 'Forms\ufrmPrevW.pas' {frmPrevW}, | ||
ufrmUpdateNotify in 'Forms\ufrmUpdateNotify.pas' {frmUpdateNotify}, | ||
uLayoutViewer in 'Forms\uLayoutViewer.pas' {LayoutViewer}, | ||
uComplexLNotify in 'Forms\uComplexLNotify.pas' { ComplexLNotify }, | ||
ufrmAbout in 'Forms\ufrmAbout.pas' { frmAbout }, | ||
ufrmAboutSkinLayout in 'Forms\ufrmAboutSkinLayout.pas' { frmAboutSkinLayout }, | ||
ufrmAutoCorrect in 'Forms\ufrmAutoCorrect.pas' { frmAutoCorrect }, | ||
ufrmAvroMouse in 'Forms\ufrmAvroMouse.pas' { frmAvroMouse }, | ||
ufrmOptions in 'Forms\ufrmOptions.pas' { frmOptions }, | ||
ufrmPrevW in 'Forms\ufrmPrevW.pas' { frmPrevW }, | ||
ufrmUpdateNotify in 'Forms\ufrmUpdateNotify.pas' { frmUpdateNotify }, | ||
uLayoutViewer in 'Forms\uLayoutViewer.pas' { LayoutViewer }, | ||
uProcessHandler in 'Units\uProcessHandler.pas', | ||
uWindowHandlers in 'Units\uWindowHandlers.pas', | ||
clsUpdateInfoDownloader in 'Classes\clsUpdateInfoDownloader.pas', | ||
clsFileVersion in 'Classes\clsFileVersion.pas', | ||
WindowsVersion in 'Units\WindowsVersion.pas', | ||
uLocale in 'Units\uLocale.pas', | ||
uMyLib in 'Units\uMyLib.pas', | ||
Phonetic_RegExp_Constants in 'Units\Phonetic_RegExp_Constants.pas', | ||
PCRE in 'Units\PCRE.pas', | ||
pcre_dll in 'Units\pcre_dll.pas', | ||
|
@@ -85,74 +79,72 @@ uses | |
clsSkinLayoutConverter in 'Classes\clsSkinLayoutConverter.pas', | ||
uCmdLineHelper in 'Units\uCmdLineHelper.pas', | ||
uCommandLineFunctions in 'Units\uCommandLineFunctions.pas', | ||
ufrmConflict in 'Forms\ufrmConflict.pas' {frmConflict}, | ||
uFrmSplash in 'Forms\uFrmSplash.pas' {frmSplash}, | ||
ufrmConflict in 'Forms\ufrmConflict.pas' { frmConflict }, | ||
uFrmSplash in 'Forms\uFrmSplash.pas' { frmSplash }, | ||
clsAbbreviation in 'Classes\clsAbbreviation.pas', | ||
clsUnicodeToBijoy2000 in '..\Unicode to ascii converter\clsUnicodeToBijoy2000.pas', | ||
ufrmEncodingWarning in 'Forms\ufrmEncodingWarning.pas' {frmEncodingWarning}; | ||
ufrmEncodingWarning in 'Forms\ufrmEncodingWarning.pas' { frmEncodingWarning }; | ||
|
||
Var | ||
Mutex : THandle; | ||
Mutex: THandle; | ||
|
||
{$R *.res} | ||
{$R docico.res} | ||
{$R *.res} | ||
{$R docico.res} | ||
|
||
Begin | ||
{ Disable FPU exceptions. No need to restore, setting is process specific. } | ||
Set8087CW($133F); | ||
{ Disable FPU exceptions. No need to restore, setting is process specific. } | ||
Set8087CW($133F); | ||
|
||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
//Check parameters | ||
If uCommandLineFunctions.HandleAllCommandLine Then Begin | ||
Application.Terminate; | ||
exit; | ||
End; | ||
/// //////////////////////////////////////////////////////////////////////////// | ||
// Check parameters | ||
If uCommandLineFunctions.HandleAllCommandLine Then Begin | ||
Application.Terminate; | ||
exit; | ||
End; | ||
|
||
|
||
////////////////////////////////////////////////////////////////////////////// | ||
{ DONE : check for previous instance } | ||
Mutex := CreateMutex(Nil, True, 'Avro_Keyboard'); | ||
If (Mutex = 0) Or (GetLastError <> 0) Then Begin | ||
/// /////////////////////////////////////////////////////////////////////////// | ||
{ DONE : check for previous instance } | ||
Mutex := CreateMutex(Nil, True, 'Avro_Keyboard'); | ||
If (Mutex = 0) Or (GetLastError <> 0) Then Begin | ||
|
||
uCommandLineFunctions.SendCommand('restore'); | ||
uCommandLineFunctions.SendCommand('restore'); | ||
|
||
Application.MessageBox('Avro Keyboard is already running on this system and' | ||
+ #10 + 'running more than one instance is not allowed.', | ||
'Avro Keyboard', MB_OK + MB_ICONEXCLAMATION + MB_DEFBUTTON1 + MB_APPLMODAL); | ||
Application.MessageBox('Avro Keyboard is already running on this system and' + #10 + 'running more than one instance is not allowed.', 'Avro Keyboard', | ||
MB_OK + MB_ICONEXCLAMATION + MB_DEFBUTTON1 + MB_APPLMODAL); | ||
|
||
Application.Terminate; | ||
exit; | ||
End; | ||
//////////////////////////////////////////////////////////////// | ||
Application.Terminate; | ||
exit; | ||
End; | ||
/// ///////////////////////////////////////////////////////////// | ||
|
||
|
||
|
||
////////////////////////////////////////////////////////////////////////////// | ||
// Load Avro | ||
Application.Initialize; | ||
/// /////////////////////////////////////////////////////////////////////////// | ||
// Load Avro | ||
Application.Initialize; | ||
|
||
//Hide Application from taskbar | ||
Application.Title := ''; | ||
SetWindowLong(Application.Handle, GWL_EXSTYLE, | ||
GetWindowLong(Application.Handle, GWL_EXSTYLE) Or WS_EX_TOOLWINDOW); | ||
Application.MainFormOnTaskBar := False; | ||
// Hide Application from taskbar | ||
Application.Title := ''; | ||
SetWindowLong(Application.Handle, GWL_EXSTYLE, GetWindowLong(Application.Handle, GWL_EXSTYLE) Or WS_EX_TOOLWINDOW); | ||
Application.MainFormOnTaskBar := False; | ||
|
||
|
||
//First item is applications main form | ||
Application.CreateForm(TAvroMainForm1, AvroMainForm1); | ||
//Hide Application from taskbar | ||
ShowWindow(application.handle, SW_HIDE); | ||
// First item is applications main form | ||
Application.CreateForm(TAvroMainForm1, AvroMainForm1); | ||
// Hide Application from taskbar | ||
ShowWindow(Application.Handle, SW_HIDE); | ||
|
||
|
||
|
||
|
||
|
||
Application.Run; | ||
//////////////////////////////////////////////////////// | ||
Application.Run; | ||
/// ///////////////////////////////////////////////////// | ||
|
||
|
||
If Mutex <> 0 Then | ||
CloseHandle(Mutex); | ||
End. | ||
If Mutex <> 0 Then | ||
CloseHandle(Mutex); | ||
|
||
End. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.