X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_curses.h;h=1141e254e6b83e3384091d985bc5a21a983d33cf;hp=2c3a314ddb590c87ee6121876e4c68ffe96160db;hb=d4483b5add8d25008c305b51729f4a53bccfaab8;hpb=c913c66391836ffd64dfb0fe96eb66601860fc95 diff --git a/mutt_curses.h b/mutt_curses.h index 2c3a314..1141e25 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 @@ -50,7 +52,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 +131,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 +178,5 @@ extern int wclear (); extern int waddstr (); extern int wclrtoeol (); #endif + +#endif /* !_MUTT_CURSES_H */