Debian Codegraph @

analyzers/src/watch/nc_windows/main_window.h

raw
1 //------------------------------------------------------------------------------
2 // Author: Vitali Adamenka
3 // Description: Header for describe ncurses main window.
4 // Copyright (c) 2015 EPAM Systems. All Rights Reserved.
5 //------------------------------------------------------------------------------
6 /*
7 This file is part of Nfstrace.
8
9 Nfstrace is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, version 2 of the License.
12
13 Nfstrace is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with Nfstrace. If not, see <http://www.gnu.org/licenses/>.
20 */
21 //------------------------------------------------------------------------------
22 #ifndef MAIN_WINDOW_H
23 #define MAIN_WINDOW_H
24 //------------------------------------------------------------------------------
25 #include <ncurses.h>
26 //------------------------------------------------------------------------------
27 class MainWindow
28 {
29 friend class HeaderWindow;
30 friend class StatisticsWindow;
31 WINDOW* _window;
32
33 void init();
34 void destroy();
35
36 static void cleanStdin(int);
37
38 public:
39 MainWindow();
40 ~MainWindow();
41
42 /*! Get iput keys
43 */
44 int inputKeys();
45
46 /*! Resize Main Window
47 */
48 void resize();
49
50 /*! Update Main Window
51 */
52 void update() const;
53 };
54 //------------------------------------------------------------------------------
55 #endif //MAIN_WINDOW_H
56 //------------------------------------------------------------------------------