1 #ifndef __CONSTANTSTRINGS_H
2 #define __CONSTANTSTRINGS_H
5 #define FROZEN_GRID "Grid is frozen. Unfreeze grid first!"
6 #define UNFROZEN_GRID "Grid is unfrozen. Freeze grid first!"
7 #define EXCEED_GRID_SIZE "Row/col exceeded grid size!"
8 #define INPUT_ROW "Enter the row: "
9 #define INPUT_COL "Enter the col: "
10 #define INPUT_INDEX "Enter the word index: "
11 #define INPUT_CLUE "Enter the clue: "
12 #define WORD_TOO_LONG "Word too long"
13 #define INPUT_WORD "Enter the word: "
14 #define INPUT_FILE "Enter the file name: "
15 #define PUZZLE_MENU_TITLE "Edit Puzzle"
16 #define MAIN_MENU_TITLE "Main Menu"
17 #define INPUT_GRID_SIZE "Number of rows/columns: "
18 #define INPUT_PASSWORD "Enter the password: "
19 #define INPUT_EXPORT_ANSWERS "Export as solution (y/N): "
20 #define INPUT_CHOICE "Your Choice: "
21 #define EXCEED_MAX_GRID_SIZE "Exceeds max puzzle size"
22 #define ERROR_WRITING_FILE "Error writing file"
23 #define ERROR_READING_FILE "Error reading file"
24 #define COMPRESSED " (compressed)"
25 #define INVALID_WORD "Word contains illegal characters. Only alphabets allowed!"
26 #define FILE_SAVED "File saved successfully"
27 #define PASSWORD_SET "Password set successfully"
28 #define PASSWORD_RESET "Password reset successfully. Puzzle is no longer \
30 #define WRONG_PASSWORD "Wrong password!"
31 #define NO_WORD_INDEX "No such word with specified index"
32 #define INPUT_CONFIRM_EXIT "Are you sure you wish to exit? \
33 Unsaved changes will be lost [y/N]"
34 #define INPUT_CONFIRM_RESET "Are you sure? This will destroy the entire grid\
35 and is irreversible (y/N): "
37 #define USAGE_LINE_1 "Usage: %s [<filename> [new <nn>]]\n"
38 #define USAGE_LINE_2 "<filename> - puzzle file name\n"
39 #define USAGE_LINE_3 "new <nn> - create new puzzle with <nn> grid \
40 columns (warning: existing file name may be overwritten)\n"
42 /* for wordblox_player */
43 #define ERROR_ICON "Unable to load icon!"
44 #define ERROR_WINDOW "Error loading Window!"
45 #define OPEN_FILE "Open File"
46 #define UNFROZEN_GRID_PLAYER "Puzzle is not finalized/frozen and hence cannot\
50 const char *AUTHOR
[] = { "V. Harishankar", NULL
};
51 const char *COPYRIGHT
= "Copyright 2020 V.Harishankar";
52 const char *COMMENTS
= "A player for wordblox (crossword puzzles)";
53 const char *PROGRAM_NAME
= "Wordblox Player";
54 const char *WEBSITE
= "http://harishankar.org/";
55 const char *WEBSITE_LABEL
= "Author's HomePage";
59 "2. Open existing puzzle",
62 char *PUZZLE_EDIT_MENU
[] =
69 "7. Set Clue - Across Word",
70 "8. Set Clue - Down Word",
72 "10.Set puzzle password",
73 "11.Reset entire grid",
74 "12.Export puzzle as PNG image",
75 "13.Export clues to text file",
76 "14.Return to main menu" };