diff options
author | dartraiden <wowemuh@gmail.com> | 2023-01-02 21:10:29 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2023-01-02 21:10:29 +0300 |
commit | 1979fd80424d16b2e489f9b57d01d9c7811d25a2 (patch) | |
tree | 960d42c5fe4a51f0fe2850bea91256e226bce221 /plugins/StartPosition/src | |
parent | adfbbb217d4f4a05acf198755f219a5223d31c27 (diff) |
Update copyrights
Diffstat (limited to 'plugins/StartPosition/src')
-rw-r--r-- | plugins/StartPosition/src/main.cpp | 2 | ||||
-rw-r--r-- | plugins/StartPosition/src/options.h | 186 | ||||
-rw-r--r-- | plugins/StartPosition/src/startposition.h | 68 | ||||
-rw-r--r-- | plugins/StartPosition/src/stdafx.cxx | 2 | ||||
-rw-r--r-- | plugins/StartPosition/src/stdafx.h | 2 | ||||
-rw-r--r-- | plugins/StartPosition/src/version.h | 2 |
6 files changed, 131 insertions, 131 deletions
diff --git a/plugins/StartPosition/src/main.cpp b/plugins/StartPosition/src/main.cpp index f6a3eddb6b..d9c5014c36 100644 --- a/plugins/StartPosition/src/main.cpp +++ b/plugins/StartPosition/src/main.cpp @@ -5,7 +5,7 @@ Copyright (C) 2005-2008 Felipe Brahm - souFrag ICQ#50566818
http://www.soufrag.cl
-Copyright (C) 2012-22 Miranda NG team (https://miranda-ng.org)
+Copyright (C) 2012-23 Miranda NG team (https://miranda-ng.org)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
diff --git a/plugins/StartPosition/src/options.h b/plugins/StartPosition/src/options.h index c8b85af8fe..e9311851df 100644 --- a/plugins/StartPosition/src/options.h +++ b/plugins/StartPosition/src/options.h @@ -1,93 +1,93 @@ -/* -Copyright (C) 2012-22 Miranda NG team (https://miranda-ng.org) - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation version 2 -of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#pragma once - -#include "stdafx.h" - -enum ClistAlign : uint8_t -{ - left, - right -}; - -enum ClistState : uint8_t -{ - hidden, - minimized, - normal -}; - -struct ClistOptions -{ - CMOption<uint8_t> isDocked; - CMOption<uint8_t> state; - - CMOption<uint32_t> x; - CMOption<uint32_t> y; - CMOption<uint32_t> width; - CMOption<uint32_t> height; - - ClistOptions() : - isDocked(CLIST_MODULE_NAME, "Docked", 0), - state(CLIST_MODULE_NAME, "State", ClistState::normal), - x(CLIST_MODULE_NAME, "x", 0), - y(CLIST_MODULE_NAME, "y", 0), - width(CLIST_MODULE_NAME, "Width", 150), - height(CLIST_MODULE_NAME, "Height", 350) - { } -}; - -struct StartPositionOptions -{ - CMOption<uint8_t> setTopPosition; - CMOption<uint8_t> setBottomPosition; - CMOption<uint8_t> setSidePosition; - CMOption<uint8_t> clistAlign; - CMOption<uint8_t> setClistWidth; - CMOption<uint8_t> setClistStartState; - CMOption<uint8_t> clistState; - - CMOption<uint32_t> pixelsFromTop; - CMOption<uint32_t> pixelsFromBottom; - CMOption<uint32_t> pixelsFromSide; - CMOption<uint32_t> clistWidth; - - StartPositionOptions(); -}; - -class COptionsDlg : public CDlgBase -{ - CCtrlCheck chkPositionTop, chkPositionBottom, chkPositionSide, chkFromLeft, chkFromRight, chkWidth; - CCtrlEdit edtPositionTop, edtPositionBottom, edtPositionSide, edtWidth; - CCtrlCheck chkStartState, chkStartHidden, chkStartNormal; - -public: - COptionsDlg(); - - bool OnInitDialog() override; - bool OnApply() override; - -private: - void removeOldSettings(); - - void onCheck_PositionTop(CCtrlCheck*); - void onCheck_PositionBottom(CCtrlCheck*); - void onCheck_PositionSide(CCtrlCheck*); - void onCheck_Width(CCtrlCheck*); - void onCheck_StartState(CCtrlCheck*); -}; +/*
+Copyright (C) 2012-23 Miranda NG team (https://miranda-ng.org)
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation version 2
+of the License.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+#include "stdafx.h"
+
+enum ClistAlign : uint8_t
+{
+ left,
+ right
+};
+
+enum ClistState : uint8_t
+{
+ hidden,
+ minimized,
+ normal
+};
+
+struct ClistOptions
+{
+ CMOption<uint8_t> isDocked;
+ CMOption<uint8_t> state;
+
+ CMOption<uint32_t> x;
+ CMOption<uint32_t> y;
+ CMOption<uint32_t> width;
+ CMOption<uint32_t> height;
+
+ ClistOptions() :
+ isDocked(CLIST_MODULE_NAME, "Docked", 0),
+ state(CLIST_MODULE_NAME, "State", ClistState::normal),
+ x(CLIST_MODULE_NAME, "x", 0),
+ y(CLIST_MODULE_NAME, "y", 0),
+ width(CLIST_MODULE_NAME, "Width", 150),
+ height(CLIST_MODULE_NAME, "Height", 350)
+ { }
+};
+
+struct StartPositionOptions
+{
+ CMOption<uint8_t> setTopPosition;
+ CMOption<uint8_t> setBottomPosition;
+ CMOption<uint8_t> setSidePosition;
+ CMOption<uint8_t> clistAlign;
+ CMOption<uint8_t> setClistWidth;
+ CMOption<uint8_t> setClistStartState;
+ CMOption<uint8_t> clistState;
+
+ CMOption<uint32_t> pixelsFromTop;
+ CMOption<uint32_t> pixelsFromBottom;
+ CMOption<uint32_t> pixelsFromSide;
+ CMOption<uint32_t> clistWidth;
+
+ StartPositionOptions();
+};
+
+class COptionsDlg : public CDlgBase
+{
+ CCtrlCheck chkPositionTop, chkPositionBottom, chkPositionSide, chkFromLeft, chkFromRight, chkWidth;
+ CCtrlEdit edtPositionTop, edtPositionBottom, edtPositionSide, edtWidth;
+ CCtrlCheck chkStartState, chkStartHidden, chkStartNormal;
+
+public:
+ COptionsDlg();
+
+ bool OnInitDialog() override;
+ bool OnApply() override;
+
+private:
+ void removeOldSettings();
+
+ void onCheck_PositionTop(CCtrlCheck*);
+ void onCheck_PositionBottom(CCtrlCheck*);
+ void onCheck_PositionSide(CCtrlCheck*);
+ void onCheck_Width(CCtrlCheck*);
+ void onCheck_StartState(CCtrlCheck*);
+};
diff --git a/plugins/StartPosition/src/startposition.h b/plugins/StartPosition/src/startposition.h index 09e652aa5c..75c159e972 100644 --- a/plugins/StartPosition/src/startposition.h +++ b/plugins/StartPosition/src/startposition.h @@ -1,34 +1,34 @@ -/* -Copyright (C) 2012-22 Miranda NG team (https://miranda-ng.org) - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation version 2 -of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#pragma once - -#include "stdafx.h" - -struct CMPlugin : public PLUGIN<CMPlugin> -{ - CMPlugin(); - - int Load() override; - - void Init(); - - int __cdecl OnOptionsInit(WPARAM, LPARAM); - void positionClist(); - - StartPositionOptions spOptions; -}; +/*
+Copyright (C) 2012-23 Miranda NG team (https://miranda-ng.org)
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation version 2
+of the License.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+#include "stdafx.h"
+
+struct CMPlugin : public PLUGIN<CMPlugin>
+{
+ CMPlugin();
+
+ int Load() override;
+
+ void Init();
+
+ int __cdecl OnOptionsInit(WPARAM, LPARAM);
+ void positionClist();
+
+ StartPositionOptions spOptions;
+};
diff --git a/plugins/StartPosition/src/stdafx.cxx b/plugins/StartPosition/src/stdafx.cxx index 564f422ca2..8c570f6949 100644 --- a/plugins/StartPosition/src/stdafx.cxx +++ b/plugins/StartPosition/src/stdafx.cxx @@ -1,5 +1,5 @@ /*
-Copyright (C) 2012-22 Miranda NG team (https://miranda-ng.org)
+Copyright (C) 2012-23 Miranda NG team (https://miranda-ng.org)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
diff --git a/plugins/StartPosition/src/stdafx.h b/plugins/StartPosition/src/stdafx.h index 5c7e573b7f..6dbc8d5f9a 100644 --- a/plugins/StartPosition/src/stdafx.h +++ b/plugins/StartPosition/src/stdafx.h @@ -5,7 +5,7 @@ Copyright (C) 2005-2008 Felipe Brahm - souFrag ICQ#50566818
http://www.soufrag.cl
-Copyright (C) 2012-22 Miranda NG team (https://miranda-ng.org)
+Copyright (C) 2012-23 Miranda NG team (https://miranda-ng.org)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
diff --git a/plugins/StartPosition/src/version.h b/plugins/StartPosition/src/version.h index c1b334483d..7eb14073ef 100644 --- a/plugins/StartPosition/src/version.h +++ b/plugins/StartPosition/src/version.h @@ -10,4 +10,4 @@ #define __DESCRIPTION "Plugin supports starting position of Contact List relative to the taskbar and screen side."
#define __AUTHOR "Felipe Brahm - souFrag"
#define __AUTHORWEB "https://miranda-ng.org/p/StartPosition"
-#define __COPYRIGHT "© 2005-2008 Felipe Brahm - souFrag, © 2012-22 Miranda NG team"
+#define __COPYRIGHT "© 2005-2008 Felipe Brahm - souFrag, © 2012-23 Miranda NG team"
|