Password protect functionality and also changed file format
[wordblah.git] / constantstrings.h
index 76fede7..89755ba 100644 (file)
@@ -14,6 +14,7 @@
 #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_READING_FILE "Error reading file"
 #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]"
@@ -47,9 +52,10 @@ char *PUZZLE_EDIT_MENU[] =
                                        "7. Set Clue - Across Word",
                                        "8. Set Clue - Down Word",
                                        "9. Save puzzle",
-                                       "10.Reset entire grid",
-                                       "11.Export puzzle as PNG image",
-                                       "12.Export clues to text file",
-                                       "13.Return to main menu" };
+                                       "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