gnomefileentry.inc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {$IfDef read_interface}
  2. type
  3. PGnomeFileEntry = ^TGnomeFileEntry;
  4. TGnomeFileEntry = record
  5. hbox : TGtkHBox;
  6. browse_dialog_title : Pchar;
  7. default_path : Pchar;
  8. fsw : PGtkWidget;
  9. is_modal : gboolean;
  10. directory_entry : gboolean;
  11. gentry : PGtkWidget;
  12. end;
  13. GNOME_FILE_ENTRY = PGnomeFileEntry;
  14. PGnomeFileEntryClass = ^TGnomeFileEntryClass;
  15. TGnomeFileEntryClass = record
  16. parent_class : TGtkHBoxClass;
  17. browse_clicked : procedure (fentry:PGnomeFileEntry);cdecl;
  18. end;
  19. GNOME_FILE_ENTRY_CLASS = PGnomeFileEntryClass;
  20. function GNOME_TYPE_FILE_ENTRY : TGTKType;
  21. function GNOME_IS_FILE_ENTRY(obj : Pointer) : Boolean;
  22. function GNOME_IS_FILE_ENTRY_CLASS(klass : Pointer) : Boolean;
  23. function gnome_file_entry_get_type:TGTKType;cdecl;external libgnomeuidll name 'gnome_file_entry_get_type';
  24. function gnome_file_entry_new(history_id:Pchar; browse_dialog_title:Pchar):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_file_entry_new';
  25. procedure gnome_file_entry_construct(fentry:PGnomeFileEntry; history_id:Pchar; browse_dialog_title:Pchar);cdecl;external libgnomeuidll name 'gnome_file_entry_construct';
  26. function gnome_file_entry_gnome_entry(fentry:PGnomeFileEntry):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_file_entry_gnome_entry';
  27. function gnome_file_entry_gtk_entry(fentry:PGnomeFileEntry):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_file_entry_gtk_entry';
  28. procedure gnome_file_entry_set_title(fentry:PGnomeFileEntry; browse_dialog_title:Pchar);cdecl;external libgnomeuidll name 'gnome_file_entry_set_title';
  29. procedure gnome_file_entry_set_default_path(fentry:PGnomeFileEntry; path:Pchar);cdecl;external libgnomeuidll name 'gnome_file_entry_set_default_path';
  30. procedure gnome_file_entry_set_directory(fentry:PGnomeFileEntry; directory_entry:gboolean);cdecl;external libgnomeuidll name 'gnome_file_entry_set_directory';
  31. function gnome_file_entry_get_full_path(fentry:PGnomeFileEntry; file_must_exist:gboolean):Pchar;cdecl;external libgnomeuidll name 'gnome_file_entry_get_full_path';
  32. procedure gnome_file_entry_set_modal(fentry:PGnomeFileEntry; is_modal:gboolean);cdecl;external libgnomeuidll name 'gnome_file_entry_set_modal';
  33. {$EndIf read_interface}
  34. {$Ifdef read_implementation}
  35. function GNOME_TYPE_FILE_ENTRY : TGTKType;
  36. begin
  37. GNOME_TYPE_FILE_ENTRY:=gnome_file_entry_get_type;
  38. end;
  39. function GNOME_IS_FILE_ENTRY(obj : Pointer) : Boolean;
  40. begin
  41. GNOME_IS_FILE_ENTRY:=(obj<>nil) and GNOME_IS_FILE_ENTRY_CLASS(PGtkTypeObject(obj)^.klass);
  42. end;
  43. function GNOME_IS_FILE_ENTRY_CLASS(klass : Pointer) : Boolean;
  44. begin
  45. GNOME_IS_FILE_ENTRY_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GNOME_TYPE_FILE_ENTRY);
  46. end;
  47. {$Endif read_implementation}