Source refactoring; no functional changes.

This commit is contained in:
Felicity Tarnell 2014-03-07 17:43:41 +00:00
parent b174130c91
commit 332fdba0bd
20 changed files with 1806 additions and 1440 deletions

37
ui.h Normal file
View file

@ -0,0 +1,37 @@
/*
* TTS - track your time.
* Copyright (c) 2012-2014 Felicity Tarnell.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely. This software is provided 'as-is', without any express or implied
* warranty.
*/
#ifndef TTS_UI_H
#define TTS_UI_H
#include <stdarg.h>
#include "tts.h"
#include "tts_curses.h"
#include "wide.h"
extern WINDOW *titwin, *statwin, *listwin;
extern int in_curses;
extern int showinv;
void cursadvance(void);
void drawstatus (const WCHAR *msg, ...);
void vdrawstatus (const WCHAR *msg, va_list);
void drawheader (void);
void drawentries (void);
WCHAR *prompt (WCHAR const *, WCHAR const *, history_t *);
int prduration (WCHAR *prompt, int *h, int *m, int *s);
int yesno (WCHAR const *);
void errbox (WCHAR const *, ...);
void verrbox (WCHAR const *, va_list);
#endif /* !TTS_UI_H */