// // C++ Interface: scorewizard // // Description: // // // Author: Adam Tee , (C) 2005 // // Copyright: See COPYING file that comes with this distribution // // #ifndef SCOREWIZARD_H #define SCOREWIZARD_H #include #include "keysigdialog.h" /** * Paper setup callback data * */ typedef struct headersetupcb { GtkWidget *title; GtkWidget *subtitle; GtkWidget *poet; GtkWidget *composer; GtkWidget *meter; GtkWidget *opus; GtkWidget *arranger; GtkWidget *instrument; GtkWidget *dedication; GtkWidget *piece; GtkWidget *head; GtkWidget *copyright; GtkWidget *footer; GtkWidget *tagline; }headersetupcb; typedef struct papersetupcb { GtkWidget *papersize; GtkWidget *lilyversion; GtkWidget *portrait; GtkWidget *fontsize; }papersetupcb; typedef struct timekeysigcb { GtkWidget *tempo; GtkWidget *numerator; GtkWidget *denominator; keysig_callbackdata *cbdata; }timekeysigcb; /** * Instrument setup callbackdata * */ typedef struct instsdata { GList *instruments; GtkListStore *list_store; }instsdata; /** * Instrument properties */ typedef struct instproperties { gint *clef; gint *numstaffs; gint *transposition; }instproperties; /** * Score setup callback data */ typedef struct scoresetup { DenemoScore *si; papersetupcb *paper; instsdata *insts; }scoresetup; typedef struct scoredata { GtkListStore **list_store; GtkTreeSelection *selection; GtkListStore *score_list; }scoredata; typedef struct wizarddata { DenemoGUI *gui; GtkListStore *list_store; GList *instruments; GtkTreeIter iter; GtkWidget *notebook; GList *score_instruments; scoredata *sdata; papersetupcb *paper; timekeysigcb *tsetup; instsdata *cbdata; instsdata *icbdata; headersetupcb *hsetup; gint *staffnumber; gint *currentstaffnumber; /* gui */ GtkWidget *score_list; GtkWidget *instrument_list; GtkWidget *nextbutton; GtkWidget *backbutton; GtkWidget *finishbutton; }wizarddata; void scorewizard(GtkAction *action, DenemoGUI *gui); void setpaperconfig(papersetupcb *cbdata, DenemoScore *si); papersetupcb *papersetup(GtkWidget *notebook, DenemoGUI *gui, gboolean isnotebook); /* isnotebook should defaults to TRUE */ #endif