89755bafec75a65ea3a39977cf08ffc891ad0214
1 #ifndef __CONSTANTSTRINGS_H
2 #define __CONSTANTSTRINGS_H
4 #define FROZEN_GRID "Grid is frozen. Unfreeze grid first!"
5 #define UNFROZEN_GRID "Grid is unfrozen. Freeze grid first!"
6 #define EXCEED_GRID_SIZE "Row/col exceeded grid size!"
7 #define INPUT_ROW "Enter the row: "
8 #define INPUT_COL "Enter the col: "
9 #define INPUT_INDEX "Enter the word index: "
10 #define INPUT_CLUE "Enter the clue: "
11 #define WORD_TOO_LONG "Word too long"
12 #define INPUT_WORD "Enter the word: "
13 #define INPUT_FILE "Enter the file name: "
14 #define PUZZLE_MENU_TITLE "Edit Puzzle"
15 #define MAIN_MENU_TITLE "Main Menu"
16 #define INPUT_GRID_SIZE "Number of rows/columns: "
17 #define INPUT_PASSWORD "Enter the password: "
18 #define INPUT_EXPORT_ANSWERS "Export as solution (y/N): "
19 #define INPUT_CHOICE "Your Choice: "
20 #define EXCEED_MAX_GRID_SIZE "Exceeds max puzzle size"
21 #define ERROR_WRITING_FILE "Error writing file"
22 #define ERROR_READING_FILE "Error reading file"
23 #define INVALID_WORD "Word contains illegal characters. Only alphabets allowed!"
24 #define FILE_SAVED "File saved successfully"
25 #define PASSWORD_SET "Password set successfully"
26 #define PASSWORD_RESET "Password reset successfully. Puzzle is no longer \
28 #define WRONG_PASSWORD "Wrong password!"
29 #define NO_WORD_INDEX "No such word with specified index"
30 #define INPUT_CONFIRM_EXIT "Are you sure you wish to exit? \
31 Unsaved changes will be lost [y/N]"
32 #define INPUT_CONFIRM_RESET "Are you sure? This will destroy the entire grid\
33 and is irreversible (y/N): "
35 #define USAGE_LINE_1 "Usage: %s [<filename> [new <nn>]]\n"
36 #define USAGE_LINE_2 "<filename> - puzzle file name\n"
37 #define USAGE_LINE_3 "new <nn> - create new puzzle with <nn> grid \
38 columns (warning: existing file name may be overwritten)\n"
42 "2. Open existing puzzle",
45 char *PUZZLE_EDIT_MENU
[] =
52 "7. Set Clue - Across Word",
53 "8. Set Clue - Down Word",
55 "10.Set puzzle password",
56 "11.Reset entire grid",
57 "12.Export puzzle as PNG image",
58 "13.Export clues to text file",
59 "14.Return to main menu" };