From 960bb20ccd3c375bcfc8b642fcbe89feaf143b22 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 2 Jul 2012 08:36:04 +0000 Subject: only add PasteIt, not adapted git-svn-id: http://svn.miranda-ng.org/main/trunk@712 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PasteIt/Options.h | 72 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 plugins/PasteIt/Options.h (limited to 'plugins/PasteIt/Options.h') diff --git a/plugins/PasteIt/Options.h b/plugins/PasteIt/Options.h new file mode 100644 index 0000000000..9e58e44d7f --- /dev/null +++ b/plugins/PasteIt/Options.h @@ -0,0 +1,72 @@ +/* +Paste It plugin +Copyright (C) 2011 Krzysztof Kral + +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 . +*/ + +#pragma once +#include "PasteToWeb.h" + +class WebOptions +{ +public: + WebOptions(int serv); + virtual ~WebOptions(); + virtual WebOptions* Copy(); + int server; + bool isSendFileName; + bool isPublicPaste; + bool isCombo1; + std::list combo1Values; + std::wstring combo1Desc; + bool isPastebin; + + std::list formats; + std::wstring defFormatId; + bool sendFileName; + bool publicPaste; + std::wstring combo1; + std::wstring pastebinUserKey; +}; + +class Options +{ +public: + Options(); + ~Options(); + static int InitOptions(WPARAM wParam, LPARAM lParam); + + static INT_PTR CALLBACK DlgProcOptsMain(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); + static INT_PTR CALLBACK DlgProcOptsPages(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); + static INT_PTR CALLBACK DlgProcOptsConfigure(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); + static INT_PTR CALLBACK DlgProcOptsLogin(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); + + static void InitCodepageCB(HWND hwndCB, unsigned int codepage); + static void SetCodepageCB(HWND hwndCB, unsigned int codepage); + static unsigned int GetCodepageCB(HWND hwndCB, bool errorReport, unsigned int defCp); + + static Options *instance; + void Save(); + void Load(); + + int defWeb; + unsigned int codepage; + bool autoUTF; + bool confDlg; + bool autoSend; + void SetDefWeb(int web); + WebOptions* webOptions[PasteToWeb::pages]; +}; + -- cgit v1.2.3