2014-04-08 13:02:08 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
int main( int argc, char *argv[] ) {
|
|
|
|
GtkBuilder *monBuilder;
|
|
|
|
GtkWidget *maFenetre;
|
|
|
|
|
|
|
|
gtk_init( &argc, &argv );
|
|
|
|
|
|
|
|
monBuilder = gtk_builder_new();
|
|
|
|
|
|
|
|
gtk_builder_add_from_file( monBuilder, "ponytracker.glade", NULL);
|
|
|
|
gtk_builder_connect_signals( monBuilder, NULL);
|
|
|
|
|
2014-04-09 19:52:13 +02:00
|
|
|
maFenetre = GTK_WIDGET( gtk_builder_get_object( monBuilder, "fenetreprincipale"));
|
2014-04-08 13:02:08 +02:00
|
|
|
|
|
|
|
gtk_widget_show_all (maFenetre);
|
|
|
|
gtk_main();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-04-09 16:06:55 +02:00
|
|
|
void lancerLecture ()
|
2014-04-08 13:02:08 +02:00
|
|
|
{
|
|
|
|
gtk_main_quit();
|
|
|
|
}
|
|
|
|
|
2014-04-08 18:30:56 +02:00
|
|
|
void fenetreSample ( int argc, char *argv[] )
|
2014-04-08 13:02:08 +02:00
|
|
|
{
|
|
|
|
GtkBuilder *monBuilderSample;
|
|
|
|
GtkWidget *maFenetreSample;
|
|
|
|
|
|
|
|
gtk_init( &argc, &argv );
|
|
|
|
|
|
|
|
monBuilderSample = gtk_builder_new();
|
|
|
|
|
|
|
|
gtk_builder_add_from_file( monBuilderSample, "ponytracker.glade", NULL);
|
|
|
|
gtk_builder_connect_signals( monBuilderSample, NULL);
|
|
|
|
|
2014-04-09 19:52:13 +02:00
|
|
|
maFenetreSample = GTK_WIDGET( gtk_builder_get_object( monBuilderSample, "ajoutsample"));
|
2014-04-08 13:02:08 +02:00
|
|
|
|
|
|
|
gtk_widget_show_all (maFenetreSample);
|
|
|
|
}
|
|
|
|
|
2014-04-08 18:30:56 +02:00
|
|
|
void fenetreInstrument ( int argc, char *argv[] )
|
2014-04-08 13:02:08 +02:00
|
|
|
{
|
|
|
|
GtkBuilder *monBuilderInstrument;
|
|
|
|
GtkWidget *maFenetreInstrument;
|
|
|
|
|
|
|
|
gtk_init( &argc, &argv );
|
|
|
|
|
|
|
|
monBuilderInstrument = gtk_builder_new();
|
|
|
|
|
|
|
|
gtk_builder_add_from_file( monBuilderInstrument, "ponytracker.glade", NULL);
|
|
|
|
gtk_builder_connect_signals( monBuilderInstrument, NULL);
|
|
|
|
|
2014-04-09 19:52:13 +02:00
|
|
|
maFenetreInstrument = GTK_WIDGET( gtk_builder_get_object( monBuilderInstrument, "ajoutinstrument"));
|
2014-04-08 13:02:08 +02:00
|
|
|
|
|
|
|
gtk_widget_show_all (maFenetreInstrument);
|
|
|
|
}
|
|
|
|
|
2014-04-08 18:30:56 +02:00
|
|
|
void fenetreMotif ( int argc, char *argv[] )
|
2014-04-08 13:02:08 +02:00
|
|
|
{
|
|
|
|
GtkBuilder *monBuilderMotif;
|
|
|
|
GtkWidget *maFenetreMotif;
|
|
|
|
|
|
|
|
gtk_init( &argc, &argv );
|
|
|
|
|
|
|
|
monBuilderMotif = gtk_builder_new();
|
|
|
|
|
|
|
|
gtk_builder_add_from_file( monBuilderMotif, "ponytracker.glade", NULL);
|
|
|
|
gtk_builder_connect_signals( monBuilderMotif, NULL);
|
|
|
|
|
2014-04-09 19:52:13 +02:00
|
|
|
maFenetreMotif = GTK_WIDGET( gtk_builder_get_object( monBuilderMotif, "ajoutmotif"));
|
2014-04-08 13:02:08 +02:00
|
|
|
|
|
|
|
gtk_widget_show_all (maFenetreMotif);
|
|
|
|
}
|