## BtMainPageSequence

BtMainPageSequence — the editor main sequence page

## Synopsis

    #include "bt-edit.h"

                        BtMainPageSequence;
    BtMainPageSequence * bt_main_page_sequence_new          (const BtEditApplication *app,
                                                             const BtMainPages *pages);
    void                bt_main_page_sequence_copy_selection
                                                            (const BtMainPageSequence *self);
    void                bt_main_page_sequence_cut_selection (const BtMainPageSequence *self);
    void                bt_main_page_sequence_delete_selection
                                                            (const BtMainPageSequence *self);
    void                bt_main_page_sequence_paste_selection
                                                            (const BtMainPageSequence *self);
    BtMachine *         bt_main_page_sequence_get_current_machine
                                                            (const BtMainPageSequence *self);

## Object Hierarchy

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

## Implemented Interfaces

BtMainPageSequence implements AtkImplementorIface, GtkBuildable and GtkOrientable.

## Properties

      "app"                      BtEditApplication*    : Read / Write / Construct Only
      "cursor-row"               glong                 : Read

## Description

Provides an editor for BtSequence instances.

## Details

### BtMainPageSequence

    typedef struct _BtMainPageSequence BtMainPageSequence;

the sequence page for the editor application

### bt_main_page_sequence_new ()

    BtMainPageSequence * bt_main_page_sequence_new          (const BtEditApplication *app,
                                                             const BtMainPages *pages);

Create a new instance

`app` : | the application the window belongs to
`pages` : | the page collection
Returns : | the new instance or `NULL` in case of an error

### bt_main_page_sequence_copy_selection ()

    void                bt_main_page_sequence_copy_selection
                                                            (const BtMainPageSequence *self);

Copy selected area.

### Note

not yet working

`self` : | the sequence subpage

### bt_main_page_sequence_cut_selection ()

    void                bt_main_page_sequence_cut_selection (const BtMainPageSequence *self);

Cut selected area.

### Note

not yet working

`self` : | the sequence subpage

### bt_main_page_sequence_delete_selection ()

    void                bt_main_page_sequence_delete_selection
                                                            (const BtMainPageSequence *self);

Delete (clear) the selected area.

`self` : | the sequence subpage

### bt_main_page_sequence_paste_selection ()

    void                bt_main_page_sequence_paste_selection
                                                            (const BtMainPageSequence *self);

Paste at the top of the selected area.

### Note

not yet working

`self` : | the sequence subpage

### bt_main_page_sequence_get_current_machine ()

    BtMachine *         bt_main_page_sequence_get_current_machine
                                                            (const BtMainPageSequence *self);

Get the currently active BtMachine as determined by the cursor position in the sequence table. Unref the machine, when done with it.

`self` : | the sequence subpage
Returns : | the BtMachine instance or `NULL` in case of an error

## Property Details

### The `"app"` property

      "app"                      BtEditApplication*    : Read / Write / Construct Only

Set application object, the window belongs to.

### The `"cursor-row"` property

      "cursor-row"               glong                 : Read

position of the cursor in the sequence view in bars.

Allowed values: >= 0

Default value: 0

## See Also

BtSequence, BtSequenceView