![]() |
![]() |
![]() |
Buzztard Bt-Edit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include "bt-edit.h" BtMainWindow; BtMainWindow * bt_main_window_new (void
); gboolean bt_main_window_check_quit (const BtMainWindow *self
); void bt_main_window_new_song (const BtMainWindow *self
); void bt_main_window_open_song (const BtMainWindow *self
); void bt_main_window_save_song (const BtMainWindow *self
); void bt_main_window_save_song_as (const BtMainWindow *self
); void bt_dialog_message (const BtMainWindow *self
,const gchar *title
,const gchar *headline
,const gchar *message
); gboolean bt_dialog_question (const BtMainWindow *self
,const gchar *title
,const gchar *headline
,const gchar *message
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----BtMainWindow
"dialog" GtkDialog* : Read "pages" BtMainPages* : Read "statusbar" BtMainStatusbar* : Read "toolbar" BtMainToolbar* : Read
The main window class is a container for the BtMainMenu, the BtMainToolbar, the BtMainStatusbar and the BtMainPages tabbed notebook.
BtMainWindow * bt_main_window_new (void
);
Create a new instance
Returns : |
the new instance |
gboolean bt_main_window_check_quit (const BtMainWindow *self
);
Displays a dialog box, that asks the user to confirm exiting the application.
|
the main window instance |
Returns : |
TRUE if the user has confirmed to exit
|
void bt_main_window_new_song (const BtMainWindow *self
);
Prepares a new song. Triggers cleaning up the old song and refreshes the ui.
|
the main window instance |
void bt_main_window_open_song (const BtMainWindow *self
);
Opens a dialog box, where the user can choose a song to load. If the dialog is not canceld, the old song will be freed, the new song will be loaded and the ui will be refreshed upon success.
|
the main window instance |
void bt_main_window_save_song (const BtMainWindow *self
);
Save the song to disk. If it is a new song it will ask for a file_name and location.
|
the main window instance |
void bt_main_window_save_song_as (const BtMainWindow *self
);
Opens a dialog box, where the user can choose a file_name and location to save the song under.
|
the main window instance |
void bt_dialog_message (const BtMainWindow *self
,const gchar *title
,const gchar *headline
,const gchar *message
);
Displays a modal message dialog, that needs to be confirmed with "Okay".
|
the applications main window |
|
the title of the message |
|
the bold headline of the message |
|
the message itself |
gboolean bt_dialog_question (const BtMainWindow *self
,const gchar *title
,const gchar *headline
,const gchar *message
);
Displays a modal question dialog, that needs to be confirmed with "Okay" or aborted with "Cancel".
|
the applications main window |
|
the title of the message |
|
the bold headline of the message |
|
the message itself |
Returns : |
TRUE for Okay, FALSE otherwise
|