Class
PanelSaveDelegate
Properties
Panel.SaveDelegate:icon
The “icon” property contains a GIcon
that describes the save
operation. Generally, this should be the symbolic icon of the
document class you are saving.
Panel.SaveDelegate:icon-name
The “icon-name” property contains the name of an icon to use when showing information about the save operation in UI such as a save dialog.
Panel.SaveDelegate:is-draft
The “is-draft” property indicates that the document represented by the delegate is a draft and might be lost of not saved.
Panel.SaveDelegate:progress
The “progress” property contains progress between 0.0 and 1.0 and should be updated by the delegate implementation as saving progresses.
Panel.SaveDelegate:subtitle
The “subtitle” property contains additional information that may not make sense to put in the title. This might include the directory that the file will be saved within.
Panel.SaveDelegate:title
The “title” property contains the title of the document being saved.
Generally, this should be the base name of the document such as
file.txt
.
Signals
Panel.SaveDelegate::close
This signal is emitted when the save delegate should close the widget it is related to. This can happen after saving as part of a close request and it is now save for the delegate to close.
Panel.SaveDelegate::discard
This signal is emitted when the user has requested that the delegate discard the changes instead of saving them.
Panel.SaveDelegate::save
This signal can be used when subclassing PanelSaveDelegate
is not
possible or cumbersome. The default implementation of
PanelSaveDelegateClass
.save_async() will emit this signal to allow
the consumer to implement asynchronous save in a flexible manner.
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct PanelSaveDelegateClass {
GObjectClass parent_class;
void (* save_async) (
PanelSaveDelegate* self,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
gboolean (* save_finish) (
PanelSaveDelegate* self,
GAsyncResult* result,
GError** error
);
gboolean (* save) (
PanelSaveDelegate* self,
GTask* task
);
void (* discard) (
PanelSaveDelegate* self
);
void (* close) (
PanelSaveDelegate* self
);
}
Class members
parent_class: GObjectClass
- No description available.
save_async: void (* save_async) ( PanelSaveDelegate* self, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data )
- No description available.
save_finish: gboolean (* save_finish) ( PanelSaveDelegate* self, GAsyncResult* result, GError** error )
- No description available.
save: gboolean (* save) ( PanelSaveDelegate* self, GTask* task )
- No description available.
discard: void (* discard) ( PanelSaveDelegate* self )
- No description available.
close: void (* close) ( PanelSaveDelegate* self )
- No description available.