View Issue Details

IDProjectCategoryView StatusLast Update
0001790Wishes_Commonpublic2013-02-28 07:29
ReporterMaximus Assigned Tovskirdin  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Product Version3.0 
Summary0001790: Включить XLat по умолчанию при установленной в системе русской раскладки
DescriptionНапример как-то так.
TagsNo tags attached.
Build2061

Activities

Maximus

2011-06-02 23:04

reporter  

xlat_config_110602.diff (1,442 bytes)   
Index: config.cpp
===================================================================
--- config.cpp	(revision 6307)
+++ config.cpp	(working copy)
@@ -977,7 +977,32 @@
 	if (Opt.strExecuteBatchType.IsEmpty()) // �����������
 		Opt.strExecuteBatchType=constBatchExt;
 
+	// ���������� XLat �� ������� ��������� qwerty<->�����
+	if (Opt.XLat.Table[0].IsEmpty())
 	{
+		bool RussianExists=false;
+		wchar_t LayoutName[KL_NAMELENGTH];
+		HKL Layouts[32];
+		UINT Count=GetKeyboardLayoutList(ARRAYSIZE(Layouts), Layouts);
+		for (UINT I=0; !RussianExists && I<Count; I++)
+		{
+			if (((DWORD_PTR)(Layouts[I]) & 0xFFFF) == 0x0419)
+			{
+				RussianExists = true;
+			}
+		}
+		if (RussianExists)
+		{
+			Opt.XLat.Flags = 0x00010001;
+			Opt.XLat.Table[0].Clear(); Opt.XLat.Table[0].Append("�����������������������������������������������������������", 1251);
+			Opt.XLat.Table[1].Clear(); Opt.XLat.Table[1].Append("#FDULTPBQRKVYJGHCNEA{WXIO}SMZfdultpbqrkvyjghcnea[wxio]sm'z`~<>", 1251);
+			Opt.XLat.Rules[0].Clear(); Opt.XLat.Rules[0].Append(",??&./�,�.:^�:�;;$\"@�\"", 1251);
+			Opt.XLat.Rules[1].Clear(); Opt.XLat.Rules[1].Append("?,&?/.,�.�^::�;�$;@\"\"�", 1251);
+			Opt.XLat.Rules[2].Clear(); Opt.XLat.Rules[2].Append("^::��^$;;��$@\"\"��@&??,,��&/..��/", 1251);
+		}
+	}
+
+	{
 		Opt.XLat.CurrentLayout=0;
 		memset(Opt.XLat.Layouts,0,sizeof(Opt.XLat.Layouts));
 		string strXLatLayouts;
xlat_config_110602.diff (1,442 bytes)   

vskirdin

2011-06-03 06:17

administrator   bugnote:0007122

build 2061

samlyukov

2011-06-03 11:32

reporter   bugnote:0007125

а как пользоваться? клавиш не будет?

Maximus

2011-06-03 18:46

reporter   bugnote:0007134

так же как и раньше, макросом "$XLat" например.

Issue History

Date Modified Username Field Change
2011-06-02 23:04 Maximus New Issue
2011-06-02 23:04 Maximus File Added: xlat_config_110602.diff
2011-06-03 06:17 vskirdin Note Added: 0007122
2011-06-03 06:17 vskirdin Assigned To => vskirdin
2011-06-03 06:17 vskirdin Status new => feedback
2011-06-03 11:32 samlyukov Note Added: 0007125
2011-06-03 18:46 Maximus Note Added: 0007134
2011-06-03 18:46 Maximus Status feedback => assigned
2011-06-06 14:17 vskirdin Status assigned => feedback
2013-02-03 00:34 alexy Severity minor => feature
2013-02-28 07:29 vskirdin Build => 2061
2013-02-28 07:29 vskirdin Status feedback => closed
2013-02-28 07:29 vskirdin Resolution open => fixed