source: branches/work_304/doc/DocMain.h @ 433

Revision 433, 3.5 KB checked in by jls17, 6 years ago (diff)
  • added placeholder support to the filter control
Line 
1//Copyright (C) 2009 Stefan Nerlich | stefan.nerlich@hotmail.com
2//
3//This file is part of ARInside.
4//
5//    ARInside is free software: you can redistribute it and/or modify
6//    it under the terms of the GNU General Public License as published by
7//    the Free Software Foundation, version 2 of the License.
8//
9//    ARInside is distributed in the hope that it will be useful,
10//    but WITHOUT ANY WARRANTY; without even the implied warranty of
11//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12//    GNU General Public License for more details.
13//
14//    You should have received a copy of the GNU General Public License
15//    along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
16
17#pragma once
18#include "DocBase.h"
19#include "MessageItem.h"
20#include "../output/Table.h"
21#include "../output/TableRow.h"
22#include "../output/FilterTable.h"
23#include "../output/AlTable.h"
24#include "../output/EscalTable.h"
25#include "../output/ContainerTable.h"
26#include "../output/MenuTable.h"
27#include "../output/SchemaTable.h"
28#include "../output/RoleTable.h"
29#include "../output/GroupTable.h"
30#include "../output/UserTable.h"
31#include "../output/ImageTable.h"
32
33using namespace OUTPUT;
34
35class CDocMain :
36        public CDocBase
37{
38public:
39        CDocMain();
40        ~CDocMain(void);
41
42        int Index();
43        void ServerInfoList();
44        unsigned int SchemaList(int nType, const CPageParams &file, string title, string searchChar, std::vector<int>& objCountPerLetter);     
45        unsigned int CharMenuList(string searchChar, std::vector<int> &objCountPerLetter);
46        unsigned int ContainerList(int nType, string title, string searchChar, std::vector<int>& objCountPerLetter);
47        void GlobalFieldList();
48        void MessageList();
49        void NotificationList();
50
51        unsigned int ActiveLinkList(string searchChar, std::vector<int>& objCountPerLetter);   
52        void ActiveLinkActionList();
53        void ActiveLinkActionDetails(int nActionType, int &ifCount, int &elseCount);
54        unsigned int FilterList(string searchChar, std::vector<int> &objCountPerLetter);       
55        void FilterActionList();
56        void FilterActionDetails(int nActionType, int &ifCount, int &elseCount);
57        void FilterErrorHandlers();
58        unsigned int EscalationList(string searchChar, std::vector<int> &objCountPerLetter);
59        void EscalationActionList();
60        void EscalationActionDetails(int nActionType, int &ifCount, int &elseCount);
61
62        void GroupList(string searchChar, std::vector<int>& objCountPerLetter);
63        void UserList(string searchChar, std::vector<int>& objCountPerLetter);
64        void RoleList(string searchChar, std::vector<int>& objCountPerLetter);
65        unsigned int ImageList(string searchChar, std::vector<int> &objCountPerLetter);
66
67private:
68        static void Sort(list<CMessageItem> &listResult);
69        static bool SortByMsgNum(const CMessageItem& t1, const CMessageItem& t2 );
70
71        void AddGlobalFieldRow(OUTPUT::CTable& tbl, int fieldId, OUTPUT::CTable& fields);
72
73        static string ShortMenu(string curCharacter, const CPageParams &curPage, std::vector<int>& objCountPerLetter);
74       
75        static string CreateStandardFilterControl(const string &inputControlId, const string &htmlPlaceHolder = "search by name");
76        static string CreateSchemaFilterControl();
77        static string CreateActlinkFilterControl();
78        static string CreateFilterFilterControl();
79        static string CreateEscalationFilterControl();
80        static string CreateMenuFilterControl();
81
82        void SchemaListJson(std::ostream &strm);
83        void ActiveLinkListJson(std::ostream &strm);
84        void FilterListJson(std::ostream &strm);
85        void EscalationListJson(std::ostream &strm);
86        void MenuListJson(std::ostream &strm);
87};
Note: See TracBrowser for help on using the repository browser.