editcmd_dialogs.h 1.2 KB

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