gnomepropertybox.inc 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {$IfDef read_interface}
  2. const
  3. GNOME_PROPERTY_BOX_DIRTY = 'gnome_property_box_dirty';
  4. type
  5. PGnomePropertyBox = ^TGnomePropertyBox;
  6. TGnomePropertyBox = record
  7. dialog : TGnomeDialog;
  8. notebook : PGtkWidget;
  9. ok_button : PGtkWidget;
  10. apply_button : PGtkWidget;
  11. cancel_button : PGtkWidget;
  12. help_button : PGtkWidget;
  13. end;
  14. GNOME_PROPERTY_BOX = PGnomePropertyBox;
  15. PGnomePropertyBoxClass = ^TGnomePropertyBoxClass;
  16. TGnomePropertyBoxClass = record
  17. parent_class : TGnomeDialogClass;
  18. apply : procedure (propertybox:PGnomePropertyBox; page_num:gint);cdecl;
  19. help : procedure (propertybox:PGnomePropertyBox; page_num:gint);cdecl;
  20. end;
  21. GNOME_PROPERTY_BOX_CLASS = PGnomePropertyBoxClass;
  22. function GNOME_TYPE_PROPERTY_BOX : TGTKType;
  23. function GNOME_IS_PROPERTY_BOX(obj : Pointer) : Boolean;
  24. function GNOME_IS_PROPERTY_BOX_CLASS(klass : Pointer) : Boolean;
  25. function gnome_property_box_get_type:TGTKType;cdecl;external libgnomeuidll name 'gnome_property_box_get_type';
  26. function gnome_property_box_new:PGtkWidget;cdecl;external libgnomeuidll name 'gnome_property_box_new';
  27. procedure gnome_property_box_changed(property_box:PGnomePropertyBox);cdecl;external libgnomeuidll name 'gnome_property_box_changed';
  28. procedure gnome_property_box_set_modified(property_box:PGnomePropertyBox; state:gboolean);cdecl;external libgnomeuidll name 'gnome_property_box_set_modified';
  29. function gnome_property_box_append_page(property_box:PGnomePropertyBox; child:PGtkWidget; tab_label:PGtkWidget):gint;cdecl;external libgnomeuidll name 'gnome_property_box_append_page';
  30. {$EndIf read_interface}
  31. {$Ifdef read_implementation}
  32. function GNOME_TYPE_PROPERTY_BOX : TGTKType;
  33. begin
  34. GNOME_TYPE_PROPERTY_BOX:=gnome_property_box_get_type;
  35. end;
  36. function GNOME_IS_PROPERTY_BOX(obj : Pointer) : Boolean;
  37. begin
  38. GNOME_IS_PROPERTY_BOX:=(obj<>nil) and GNOME_IS_PROPERTY_BOX_CLASS(PGtkTypeObject(obj)^.klass);
  39. end;
  40. function GNOME_IS_PROPERTY_BOX_CLASS(klass : Pointer) : Boolean;
  41. begin
  42. GNOME_IS_PROPERTY_BOX_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GNOME_TYPE_PROPERTY_BOX);
  43. end;
  44. {$Endif read_implementation}