X-Git-Url: https://harishankar.org/repos/?a=blobdiff_plain;ds=sidebyside;f=constantstrings.h;h=1aec3803e3d2ffc13713de14e8429f687469b1d0;hb=70d116c047f04b31939c11a3856be04e1edcd783;hp=c8d3b58f67cb7fae6a754a3e1f1505f1cefb67bc;hpb=d29b37aa1b82dbd3c4baa55396521296f4a88ef4;p=wordblah.git diff --git a/constantstrings.h b/constantstrings.h index c8d3b58..1aec380 100644 --- a/constantstrings.h +++ b/constantstrings.h @@ -1,6 +1,7 @@ #ifndef __CONSTANTSTRINGS_H #define __CONSTANTSTRINGS_H +#define VERSION "0.1a" #define FROZEN_GRID "Grid is frozen. Unfreeze grid first!" #define UNFROZEN_GRID "Grid is unfrozen. Freeze grid first!" #define EXCEED_GRID_SIZE "Row/col exceeded grid size!" @@ -14,13 +15,44 @@ #define PUZZLE_MENU_TITLE "Edit Puzzle" #define MAIN_MENU_TITLE "Main Menu" #define INPUT_GRID_SIZE "Number of rows/columns: " +#define INPUT_PASSWORD "Enter the password: " +#define INPUT_EXPORT_ANSWERS "Export as solution (y/N): " #define INPUT_CHOICE "Your Choice: " #define EXCEED_MAX_GRID_SIZE "Exceeds max puzzle size" #define ERROR_WRITING_FILE "Error writing file" #define ERROR_READING_FILE "Error reading file" +#define COMPRESSED " (compressed)" #define INVALID_WORD "Word contains illegal characters. Only alphabets allowed!" #define FILE_SAVED "File saved successfully" +#define PASSWORD_SET "Password set successfully" +#define PASSWORD_RESET "Password reset successfully. Puzzle is no longer \ +password protected!" +#define WRONG_PASSWORD "Wrong password!" #define NO_WORD_INDEX "No such word with specified index" +#define INPUT_CONFIRM_EXIT "Are you sure you wish to exit? \ +Unsaved changes will be lost [y/N]" +#define INPUT_CONFIRM_RESET "Are you sure? This will destroy the entire grid\ +and is irreversible (y/N): " + +#define USAGE_LINE_1 "Usage: %s [ [new ]]\n" +#define USAGE_LINE_2 " - puzzle file name\n" +#define USAGE_LINE_3 "new - create new puzzle with grid \ +columns (warning: existing file name may be overwritten)\n" + +/* for wordblox_player */ +#define ERROR_ICON "Unable to load icon!" +#define ERROR_WINDOW "Error loading Window!" +#define OPEN_FILE "Open File" +#define UNFROZEN_GRID_PLAYER "Puzzle is not finalized/frozen and hence cannot\ + be played" + +/* about box info */ +const char *AUTHOR[] = { "V. Harishankar", NULL}; +const char *COPYRIGHT = "Copyright 2020 V.Harishankar"; +const char *COMMENTS = "A player for wordblox (crossword puzzles)"; +const char *PROGRAM_NAME = "Wordblox Player"; +const char *WEBSITE = "http://harishankar.org/"; +const char *WEBSITE_LABEL = "Author's HomePage"; char *MAIN_MENU[] = {"1. New puzzle", @@ -35,7 +67,12 @@ char *PUZZLE_EDIT_MENU[] = "5. Freeze grid", "6. Unfreeze grid", "7. Set Clue - Across Word", - "8. Save puzzle", - "9. Return to main menu" }; + "8. Set Clue - Down Word", + "9. Save puzzle", + "10.Set puzzle password", + "11.Reset entire grid", + "12.Export puzzle as PNG image", + "13.Export clues to text file", + "14.Return to main menu" }; #endif