editcmd_dialogs.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef MC__EDITCMD_DIALOGS_H
  2. #define MC__EDITCMD_DIALOGS_H
  3. #include "../edit/edit.h"
  4. /*** typedefs(not structures) and defined constants **********************************************/
  5. struct etags_hash_struct;
  6. #define B_REPLACE_ALL (B_USER+1)
  7. #define B_REPLACE_ONE (B_USER+2)
  8. #define B_SKIP_REPLACE (B_USER+3)
  9. /*** enums ***************************************************************************************/
  10. /*** structures declarations (and typedefs of structures)*****************************************/
  11. struct selection {
  12. gchar *text;
  13. gsize len;
  14. };
  15. /*** global variables defined in .c file *********************************************************/
  16. /*** declarations of public functions ************************************************************/
  17. void editcmd_dialog_replace_show (WEdit *, const char *, const char *, char **, char **);
  18. void editcmd_dialog_search_show (WEdit *, char **);
  19. int editcmd_dialog_raw_key_query (const char *, const char *, int);
  20. void editcmd_dialog_completion_show (WEdit *, int, int, struct selection *, int);
  21. void editcmd_dialog_select_definition_show (WEdit *, char *, int, int, struct etags_hash_struct *,
  22. int);
  23. int editcmd_dialog_replace_prompt_show (WEdit *, char *, char *, int, int);
  24. #endif