From 177332f74da967369758199c67a9fb5851ab6fde Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 4 Jan 2018 14:28:54 +0100 Subject: Help menu --- main.c | 1 + wind.c | 18 ++++++++++++++++++ wind.h | 2 ++ 3 files changed, 21 insertions(+) diff --git a/main.c b/main.c index a6f20c8..491abcb 100755 --- a/main.c +++ b/main.c @@ -216,6 +216,7 @@ int main(int argc, char* argv[]){ printmenu(&menu); printTagInfoHeader(); + printHelp(); move(1,COLS/2); vline( ACS_VLINE, LINES-2) ; diff --git a/wind.c b/wind.c index a587dce..b2581c3 100644 --- a/wind.c +++ b/wind.c @@ -35,6 +35,23 @@ void printTagInfoHeader() { mvprintc(COLS/2+2, 7, "Comment :",15); attrset( COLOR_PAIR( 0 ) | A_NORMAL); } +void printHelp() { + attrset( COLOR_PAIR( COLOR_RED + 1) | A_BOLD); + mvprintc(COLS/2+2, 10, "j : Down",20); + mvprintc(COLS/2+2, 11, "k : Up",20); + mvprintc(COLS/2+2, 12, "et: Edit title",20); + mvprintc(COLS/2+2, 13, "ea: Edit artist",20); + mvprintc(COLS/2+2, 14, "eb: Edit album",20); + mvprintc(COLS/2+2, 15, "ey: Edit year",20); + mvprintc(COLS/2+2+24, 10, "en: Edit track N°",20); + mvprintc(COLS/2+2+24, 11, "et: Edit genre",20); + mvprintc(COLS/2+2+24, 12, "s : Regex selection",20); + mvprintc(COLS/2+2+24, 13, "x : Regex edition",20); + mvprintc(COLS/2+2+24, 14, "q : Quit",20); + attrset( COLOR_PAIR( 0 ) | A_NORMAL); +} + + void printTagInfo(menuC* menu) { static int mustClear = 0; if( mustClear == 1 ) { @@ -144,6 +161,7 @@ void resizeMain(menuC* menu) { menu->w = COLS/2-1; printmenu(menu); printTagInfoHeader(); + printHelp(); printTagInfo(menu); printStatus(); move(1,COLS/2); diff --git a/wind.h b/wind.h index 63fed9c..7b7f12a 100644 --- a/wind.h +++ b/wind.h @@ -9,6 +9,8 @@ void printTagInfoHeader(); +void printHelp(); + void printTagInfo(menuC* menu); void cleanmenu(menuC* menu); -- cgit v1.2.3