BtMainPagePatterns

BtMainPagePatterns — the editor main pattern page

Synopsis

#include "bt-edit.h"

                    BtMainPagePatterns;
BtMainPagePatterns * bt_main_page_patterns_new          (const BtMainPages *pages);
BtMachine *         bt_main_page_patterns_get_current_machine
                                                        (const BtMainPagePatterns *self);
BtPattern *         bt_main_page_patterns_get_current_pattern
                                                        (const BtMainPagePatterns *self);
void                bt_main_page_patterns_show_pattern  (const BtMainPagePatterns *self,
                                                         BtPattern *pattern);
void                bt_main_page_patterns_show_machine  (const BtMainPagePatterns *self,
                                                         BtMachine *machine);
void                bt_main_page_patterns_delete_selection
                                                        (const BtMainPagePatterns *self);
void                bt_main_page_patterns_cut_selection (const BtMainPagePatterns *self);
void                bt_main_page_patterns_copy_selection
                                                        (const BtMainPagePatterns *self);
void                bt_main_page_patterns_paste_selection
                                                        (const BtMainPagePatterns *self);

Object Hierarchy

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

Implemented Interfaces

BtMainPagePatterns implements AtkImplementorIface, GtkBuildable, GtkOrientable and BtChangeLogger.

Description

Provides an editor for BtPattern instances.

Details

BtMainPagePatterns

typedef struct _BtMainPagePatterns BtMainPagePatterns;

the pattern page for the editor application


bt_main_page_patterns_new ()

BtMainPagePatterns * bt_main_page_patterns_new          (const BtMainPages *pages);

Create a new instance

pages :

the page collection

Returns :

the new instance

bt_main_page_patterns_get_current_machine ()

BtMachine *         bt_main_page_patterns_get_current_machine
                                                        (const BtMainPagePatterns *self);

Get the currently active BtMachine as determined by the machine option menu in the toolbar. Unref the machine, when done with it.

self :

the pattern subpage

Returns :

the BtMachine instance or NULL in case of an error

bt_main_page_patterns_get_current_pattern ()

BtPattern *         bt_main_page_patterns_get_current_pattern
                                                        (const BtMainPagePatterns *self);

Get the currently active BtPattern as determined by the pattern option menu in the toolbar. Unref the pattern, when done with it.

self :

the pattern subpage

Returns :

the BtPattern instance or NULL in case of an error

bt_main_page_patterns_show_pattern ()

void                bt_main_page_patterns_show_pattern  (const BtMainPagePatterns *self,
                                                         BtPattern *pattern);

Show the given pattern. Will update machine and pattern menu.

self :

the pattern subpage

pattern :

the pattern to show

bt_main_page_patterns_show_machine ()

void                bt_main_page_patterns_show_machine  (const BtMainPagePatterns *self,
                                                         BtMachine *machine);

Show the given machine. Will update machine menu.

self :

the pattern subpage

machine :

the machine to show

bt_main_page_patterns_delete_selection ()

void                bt_main_page_patterns_delete_selection
                                                        (const BtMainPagePatterns *self);

Delete (clear) the selected area.

self :

the pattern subpage

bt_main_page_patterns_cut_selection ()

void                bt_main_page_patterns_cut_selection (const BtMainPagePatterns *self);

Cut selected area.

self :

the pattern subpage

bt_main_page_patterns_copy_selection ()

void                bt_main_page_patterns_copy_selection
                                                        (const BtMainPagePatterns *self);

Copy selected area.

self :

the sequence subpage

bt_main_page_patterns_paste_selection ()

void                bt_main_page_patterns_paste_selection
                                                        (const BtMainPagePatterns *self);

Paste at the top of the selected area.

self :

the pattern subpage

See Also

BtPattern, BtPatternEditor