X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_curses.h;h=3bd9f96d5920c817f1771f30dbbe4129323e3e51;hp=b090e9cd251ff387c89b4e9a5c7728d1b2be861d;hb=6c7e9f1a1008e4fedb1e0ae1e4ad7af17c8239df;hpb=c3e57678c8be193fc137854020f3a90887be97c9 diff --git a/mutt_curses.h b/mutt_curses.h index b090e9c..3bd9f96 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -7,6 +7,8 @@ * It's licensed under the GNU General Public License, * please see the file GPL in the top level source directory. */ +#ifndef _MUTT_CURSES_H +#define _MUTT_CURSES_H #ifdef USE_SLANG_CURSES @@ -31,12 +33,16 @@ #ifdef HAVE_NCURSESW_NCURSES_H #include #else +#ifdef HAVE_NCURSES_NCURSES_H +#include +#else #ifdef HAVE_NCURSES_H #include #else #include #endif #endif +#endif #define M_ENTER_C '\n' #define M_ENTER_S "\n" @@ -50,7 +56,7 @@ #undef lines #endif /* lines */ -#define CLEARLINE_WIN(x) move(x,SidebarWidth), clrtoeol() +#define CLEARLINE_WIN(x) move(x,(option(OPTMBOXPANE)?SidebarWidth:0)), clrtoeol() #define CLEARLINE(x) move(x,0), clrtoeol() #define CENTERLINE(x,y) move(y, (COLS-strlen(x))/2), addstr(x) #define BEEP() do { if (option (OPTBEEP)) beep(); } while (0) @@ -129,6 +135,15 @@ typedef struct color_line { struct color_line *next; } COLOR_LINE; +typedef struct { + const char* msg; + long pos; + long size; + char sizestr[SHORT_STRING]; +} progress_t; + +void mutt_progress_bar (progress_t* progress, long pos); + extern int *ColorQuote; extern int ColorQuoteUsed; extern int ColorDefs[]; @@ -167,3 +182,5 @@ extern int wclear (); extern int waddstr (); extern int wclrtoeol (); #endif + +#endif /* !_MUTT_CURSES_H */