diff options
author | Alexey Kulakov <panda75@bk.ru> | 2014-12-21 20:36:45 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2014-12-21 20:36:45 +0000 |
commit | a26b59b904144f95f87bd5926787dba0568a4c5b (patch) | |
tree | d350f9eb60de7e7578e5bb07537104ee325c7f52 /plugins/Actman/iac_settings.pas | |
parent | b0d8e624a131040cdc4bf2cd305ebe8c20ad4ab1 (diff) |
Actman: "Single instance" default (for every new macro) flag introduced
Small options GUI logic changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@11564 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Actman/iac_settings.pas')
-rw-r--r-- | plugins/Actman/iac_settings.pas | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/Actman/iac_settings.pas b/plugins/Actman/iac_settings.pas index 3997fbe73d..9d17be2846 100644 --- a/plugins/Actman/iac_settings.pas +++ b/plugins/Actman/iac_settings.pas @@ -42,6 +42,7 @@ var fCLformat:pWideChar;
lp:TLPARAM;
stat:integer;
+ flag:dword;
begin
result:=0;
@@ -76,6 +77,7 @@ begin if (lParam=0) and (wParam=1) then
begin
lp:=LV_GetLParam(MacroListWindow);
+
if (lp and ACF_FIRSTRUN)<>0 then
stat:=BST_CHECKED
else
@@ -87,6 +89,12 @@ begin else
stat:=BST_UNCHECKED;
CheckDlgButton(Dialog,IDC_VL_FLAG,stat);
+
+ if (lp and ACF_SINGLEINST)<>0 then
+ stat:=BST_CHECKED
+ else
+ stat:=BST_UNCHECKED;
+ CheckDlgButton(Dialog,IDC_SI_FLAG,stat);
end;
end;
@@ -109,6 +117,25 @@ begin DBWriteByte(0,DBBranch,'CLfilter',IsDlgButtonChecked(Dialog,IDC_CNT_FILTER));
end;
+ IDC_FR_FLAG,
+ IDC_VL_FLAG,
+ IDC_SI_FLAG: begin
+ lp:=LV_GetLParam(MacroListWindow);
+ case loword(wParam) of
+ IDC_FR_FLAG: flag:=ACF_FIRSTRUN;
+ IDC_VL_FLAG: flag:=ACF_VOLATILE;
+ IDC_SI_FLAG: flag:=ACF_SINGLEINST;
+ end;
+ if IsDlgButtonChecked(Dialog,loword(wParam))=BST_UNCHECKED then
+ lp:=lp and not flag
+ else
+ lp:=lp or flag;
+
+ LV_SetLParam(MacroListWindow,lp);
+
+ SendMessage(GetParent(GetParent(Dialog)),PSM_CHANGED,0,0);
+ end;
+{!!
IDC_FR_FLAG: begin
lp:=LV_GetLParam(MacroListWindow);
if IsDlgButtonChecked(Dialog,IDC_FR_FLAG)=BST_UNCHECKED then
@@ -130,6 +157,18 @@ begin SendMessage(GetParent(GetParent(Dialog)),PSM_CHANGED,0,0);
end;
+
+ IDC_SI_FLAG: begin
+ lp:=LV_GetLParam(MacroListWindow);
+ if IsDlgButtonChecked(Dialog,IDC_SI_FLAG)=BST_UNCHECKED then
+ lp:=lp and not ACF_SINGLEINST
+ else
+ lp:=lp or ACF_SINGLEINST;
+ LV_SetLParam(MacroListWindow,lp);
+
+ SendMessage(GetParent(GetParent(Dialog)),PSM_CHANGED,0,0);
+ end;
+!!}
end;
end;
end;
|