| 1 |
//------------------------------------------------------------------------------ |
| 2 |
// Author: Vitali Adamenka |
| 3 |
// Description: Header for describe ncurses header 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 HEADER_WINDOWS_H |
| 23 |
#define HEADER_WINDOWS_H |
| 24 |
//------------------------------------------------------------------------------ |
| 25 |
#include <ncurses.h> |
| 26 |
|
| 27 |
#include "main_window.h" |
| 28 |
//------------------------------------------------------------------------------ |
| 29 |
class HeaderWindow |
| 30 |
{ |
| 31 |
WINDOW* _window; |
| 32 |
time_t _start_time; |
| 33 |
void destroy(); |
| 34 |
|
| 35 |
public: |
| 36 |
HeaderWindow() = delete; |
| 37 |
HeaderWindow(MainWindow&); |
| 38 |
~HeaderWindow(); |
| 39 |
|
| 40 |
/*! Update Header Window |
| 41 |
*/ |
| 42 |
void update(); |
| 43 |
|
| 44 |
/*! Resize Header Window |
| 45 |
*/ |
| 46 |
void resize(MainWindow&); |
| 47 |
}; |
| 48 |
//------------------------------------------------------------------------------ |
| 49 |
#endif //HEADER_WINDOWS_H |
| 50 |
//------------------------------------------------------------------------------ |