BtMainPageMachines

BtMainPageMachines — the editor main machines page

Synopsis

#include "bt-edit.h"

struct              BtMainPageMachines;
BtMainPageMachines * bt_main_page_machines_new          (const BtMainPages *pages);
gboolean            bt_main_page_machines_wire_volume_popup
                                                        (const BtMainPageMachines *self,
                                                         BtWire *wire,
                                                         gint xpos,
                                                         gint ypos);
gboolean            bt_main_page_machines_wire_panorama_popup
                                                        (const BtMainPageMachines *self,
                                                         BtWire *wire,
                                                         gint xpos,
                                                         gint ypos);
gboolean            bt_main_page_machines_add_source_machine
                                                        (const BtMainPageMachines *self,
                                                         const gchar *id,
                                                         const gchar *plugin_name);
gboolean            bt_main_page_machines_add_processor_machine
                                                        (const BtMainPageMachines *self,
                                                         const gchar *id,
                                                         const gchar *plugin_name);
void                bt_main_page_machines_delete_machine
                                                        (const BtMainPageMachines *self,
                                                         BtMachine *machine);
void                bt_main_page_machines_delete_wire   (const BtMainPageMachines *self,
                                                         BtWire *wire);
void                bt_main_page_machines_rename_machine
                                                        (const BtMainPageMachines *self,
                                                         BtMachine *machine);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBox
                                 +----GtkVBox
                                       +----BtMainPageMachines

Implemented Interfaces

BtMainPageMachines implements AtkImplementorIface, GtkBuildable and GtkOrientable.

Properties

  "canvas"                   GnomeCanvas*          : Read

Description

Displays the machine setup and wires on a canvas.

Details

struct BtMainPageMachines

struct BtMainPageMachines;

the machines page for the editor application


bt_main_page_machines_new ()

BtMainPageMachines * bt_main_page_machines_new          (const BtMainPages *pages);

Create a new instance

pages :

the page collection

Returns :

the new instance

bt_main_page_machines_wire_volume_popup ()

gboolean            bt_main_page_machines_wire_volume_popup
                                                        (const BtMainPageMachines *self,
                                                         BtWire *wire,
                                                         gint xpos,
                                                         gint ypos);

Activates the volume-popup for the given wire.

self :

the machines page

wire :

the wire to popup the volume control for

xpos :

the x-position for the popup

ypos :

the y-position for the popup

Returns :

TRUE for succes.

bt_main_page_machines_wire_panorama_popup ()

gboolean            bt_main_page_machines_wire_panorama_popup
                                                        (const BtMainPageMachines *self,
                                                         BtWire *wire,
                                                         gint xpos,
                                                         gint ypos);

Activates the panorama-popup for the given wire.

self :

the machines page

wire :

the wire to popup the panorama control for

xpos :

the x-position for the popup

ypos :

the y-position for the popup

Returns :

TRUE for succes.

bt_main_page_machines_add_source_machine ()

gboolean            bt_main_page_machines_add_source_machine
                                                        (const BtMainPageMachines *self,
                                                         const gchar *id,
                                                         const gchar *plugin_name);

Add a new machine to the machine-page.

self :

the machines page

id :

the id for the new machine

plugin_name :

the plugin-name for the new machine

bt_main_page_machines_add_processor_machine ()

gboolean            bt_main_page_machines_add_processor_machine
                                                        (const BtMainPageMachines *self,
                                                         const gchar *id,
                                                         const gchar *plugin_name);

Add a new machine to the machine-page.

self :

the machines page

id :

the id for the new machine

plugin_name :

the plugin-name for the new machine

bt_main_page_machines_delete_machine ()

void                bt_main_page_machines_delete_machine
                                                        (const BtMainPageMachines *self,
                                                         BtMachine *machine);

Remove a machine from the machine-page.

self :

the machines page

machine :

the machine to remove

bt_main_page_machines_delete_wire ()

void                bt_main_page_machines_delete_wire   (const BtMainPageMachines *self,
                                                         BtWire *wire);

Remove a wire from the machine-page (unlink the machines).

self :

the machines page

wire :

the wire to remove

bt_main_page_machines_rename_machine ()

void                bt_main_page_machines_rename_machine
                                                        (const BtMainPageMachines *self,
                                                         BtMachine *machine);

Run the machine BtMachineRenameDialog.

self :

the machines page

machine :

the machine to renam

Property Details

The "canvas" property

  "canvas"                   GnomeCanvas*          : Read

Get the machine canvas.

See Also

BtSetup