refactor *Screen classes, add InfoScreen superclass

This commit is contained in:
Hisham Muhammad
2016-01-12 06:00:58 -02:00
parent faf2860669
commit 466d4da0c6
10 changed files with 420 additions and 406 deletions

View File

@ -9,8 +9,7 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
#include "Process.h"
#include "Panel.h"
#include "InfoScreen.h"
typedef struct OpenFiles_Data_ {
char* data[256];
@ -28,16 +27,19 @@ typedef struct OpenFiles_FileData_ {
} OpenFiles_FileData;
typedef struct OpenFilesScreen_ {
Process* process;
InfoScreen super;
pid_t pid;
Panel* display;
} OpenFilesScreen;
extern InfoScreenClass OpenFilesScreen_class;
OpenFilesScreen* OpenFilesScreen_new(Process* process);
void OpenFilesScreen_delete(OpenFilesScreen* this);
void OpenFilesScreen_delete(Object* this);
void OpenFilesScreen_run(OpenFilesScreen* this);
void OpenFilesScreen_draw(InfoScreen* this);
void OpenFilesScreen_scan(InfoScreen* this);
#endif