swamigui Reference Manual | ||||
---|---|---|---|---|
Top | Description |
void swamigui_load_files (SwamiguiRoot *root
); void swamigui_save_files (IpatchList *item_list
,gboolean saveas
); void swamigui_close_files (IpatchList *item_list
); void swamigui_delete_items (IpatchList *item_list
); void swamigui_wtbl_load_patch (IpatchItem *item
); void swamigui_new_item (IpatchItem *parent_hint
,GType type
); void swamigui_goto_link_item (IpatchItem *item
,SwamiguiTree *tree
); void swamigui_load_samples (IpatchItem *parent_hint
); void swamigui_export_samples (IpatchList *samples
); void swamigui_copy_items (IpatchList *items
); void swamigui_paste_items (IpatchItem *dstitem
,GList *items
);
void swamigui_load_files (SwamiguiRoot *root
);
Open files routine. Displays a file selection dialog to open patch files with.
|
GUI root object |
void swamigui_save_files (IpatchList *item_list
,gboolean saveas
);
Save files user interface. If saveas
is FALSE
and all selected files
have already been saved before, then they are saved. If only one file has
not yet been saved then the normal save as file dialog is shown. If
multiple files have not been saved or saveas
is TRUE
then the multi-file
save dialog is used.
|
List of items to save. |
|
TRUE forces popup of dialog even if all files have previously been saved (forces "Save As"). |
void swamigui_close_files (IpatchList *item_list
);
User interface to close files.
|
List of items to close (usually only IpatchBase derived objects make sense). |
void swamigui_delete_items (IpatchList *item_list
);
Delete patch items
|
List of items to delete |
void swamigui_wtbl_load_patch (IpatchItem *item
);
Load a patch item
|
Patch to load into wavetable. |
void swamigui_new_item (IpatchItem *parent_hint
,GType type
);
Create a new patch item.
|
The parent of the new item or a hint item. An example of a hint item is a SWAMIGUI_TREE_PRESET_MELODIC item which would allow the real IpatchSF2Preset parent to be found, and would also indicate that the new zone should be in the melodic branch. Can (and should be) NULL for toplevel patch objects (IpatchSF2, etc). |
|
GType of an IpatchItem derived type to create. |
void swamigui_goto_link_item (IpatchItem *item
,SwamiguiTree *tree
);
Goto an item's linked item in a SwamiguiTree object.
Moves the view and selects the item in a SwamiguiTree that is linked
by item
.
|
Patch item |
|
Swami tree object |
void swamigui_load_samples (IpatchItem *parent_hint
);
Load sample user interface
|
Parent of new sample or a child thereof. |
void swamigui_export_samples (IpatchList *samples
);
Export one or more samples (object with IpatchSample interface) to a file or directory.
|
List of objects (non IpatchSample interface items are ignored) |
void swamigui_copy_items (IpatchList *items
);
Set the item clipboard to a given list of items.
|
List of items to copy or NULL to clear
|