Update list of wide characters
[centerim5.git] / src / GeneralMenu.h
blobfa4fb0398fd76ccb0ae9734664c2c03d060cba05
1 // Copyright (C) 2007 Mark Pustjens <pustjens@dds.nl>
2 // Copyright (C) 2010-2015 Petr Pavlu <setup@dagobah.cz>
3 //
4 // This file is part of CenterIM.
5 //
6 // CenterIM is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
11 // CenterIM is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with CenterIM. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef GENERALMENU_H
20 #define GENERALMENU_H
22 #include "config.h"
23 #include <cppconsui/MenuWindow.h>
24 #include <libpurple/purple.h>
26 class GeneralMenu : public CppConsUI::MenuWindow {
27 public:
28 GeneralMenu();
29 virtual ~GeneralMenu() override {}
31 // FreeWindow
32 virtual void onScreenResized() override;
34 private:
35 CONSUI_DISABLE_COPY(GeneralMenu);
37 void openStatusWindow(CppConsUI::Button &activator);
38 void openAccountWindow(CppConsUI::Button &activator);
39 void openAddBuddyRequest(CppConsUI::Button &activator);
40 void openAddChatRequest(CppConsUI::Button &activator);
41 void openAddGroupRequest(CppConsUI::Button &activator);
42 void openPendingRequests(CppConsUI::Button &activator);
43 void openOptionWindow(CppConsUI::Button &activator);
44 void openPluginWindow(CppConsUI::Button &activator);
46 #ifdef DEBUG
47 void openRequestInputTest(CppConsUI::Button &activator);
48 void openRequestChoiceTest(CppConsUI::Button &activator);
49 void openRequestActionTest(CppConsUI::Button &activator);
50 void openRequestFieldsTest(CppConsUI::Button &activator);
52 static void input_ok_cb_(void *data, const char *text)
54 reinterpret_cast<GeneralMenu *>(data)->input_ok_cb(text);
56 void input_ok_cb(const char *text);
58 static void choice_ok_cb_(void *data, int selected)
60 reinterpret_cast<GeneralMenu *>(data)->choice_ok_cb(selected);
62 void choice_ok_cb(int selected);
64 static void action_cb_(void *data, int action)
66 reinterpret_cast<GeneralMenu *>(data)->action_cb(action);
68 void action_cb(int action);
70 static void fields_ok_cb_(void *data, PurpleRequestFields *fields)
72 reinterpret_cast<GeneralMenu *>(data)->fields_ok_cb(fields);
74 void fields_ok_cb(PurpleRequestFields *fields);
75 #endif // DEBUG
78 #endif // GENERALMENU_H
80 // vim: set tabstop=2 shiftwidth=2 textwidth=80 expandtab: