PonyTracker
Un projet de tracker de musique
 Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Définitions de type Énumérations Valeurs énumérées Macros Pages
premierTest.c
Aller à la documentation de ce fichier.
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <gtk/gtk.h>
4 
5 int main( int argc, char *argv[] ) {
6  GtkBuilder *monBuilder;
7  GtkWidget *maFenetre;
8 
9  gtk_init( &argc, &argv );
10 
11  monBuilder = gtk_builder_new();
12 
13  gtk_builder_add_from_file( monBuilder, "ponytracker.glade", NULL);
14  gtk_builder_connect_signals( monBuilder, NULL);
15 
16  maFenetre = GTK_WIDGET( gtk_builder_get_object( monBuilder, "fenetreprincipale"));
17 
18  gtk_widget_show_all (maFenetre);
19  gtk_main();
20  return 0;
21 }
22 
24 {
25  gtk_main_quit();
26 }
27 
28 void fenetreSample ( int argc, char *argv[] )
29 {
30  GtkBuilder *monBuilderSample;
31  GtkWidget *maFenetreSample;
32 
33  gtk_init( &argc, &argv );
34 
35  monBuilderSample = gtk_builder_new();
36 
37  gtk_builder_add_from_file( monBuilderSample, "ponytracker.glade", NULL);
38  gtk_builder_connect_signals( monBuilderSample, NULL);
39 
40  maFenetreSample = GTK_WIDGET( gtk_builder_get_object( monBuilderSample, "ajoutsample"));
41 
42  gtk_widget_show_all (maFenetreSample);
43 }
44 
45 void fenetreInstrument ( int argc, char *argv[] )
46 {
47  GtkBuilder *monBuilderInstrument;
48  GtkWidget *maFenetreInstrument;
49 
50  gtk_init( &argc, &argv );
51 
52  monBuilderInstrument = gtk_builder_new();
53 
54  gtk_builder_add_from_file( monBuilderInstrument, "ponytracker.glade", NULL);
55  gtk_builder_connect_signals( monBuilderInstrument, NULL);
56 
57  maFenetreInstrument = GTK_WIDGET( gtk_builder_get_object( monBuilderInstrument, "ajoutinstrument"));
58 
59  gtk_widget_show_all (maFenetreInstrument);
60 }
61 
62 void fenetreMotif ( int argc, char *argv[] )
63 {
64  GtkBuilder *monBuilderMotif;
65  GtkWidget *maFenetreMotif;
66 
67  gtk_init( &argc, &argv );
68 
69  monBuilderMotif = gtk_builder_new();
70 
71  gtk_builder_add_from_file( monBuilderMotif, "ponytracker.glade", NULL);
72  gtk_builder_connect_signals( monBuilderMotif, NULL);
73 
74  maFenetreMotif = GTK_WIDGET( gtk_builder_get_object( monBuilderMotif, "ajoutmotif"));
75 
76  gtk_widget_show_all (maFenetreMotif);
77 }
GtkBuilder * monBuilder
Definition: main.c:48
void fenetreSample(int argc, char *argv[])
Definition: premierTest.c:28
void lancerLecture()
Definition: premierTest.c:23
void fenetreMotif(int argc, char *argv[])
Definition: premierTest.c:62
int main(int argc, char *argv[])
Definition: premierTest.c:5
void fenetreInstrument(int argc, char *argv[])
Definition: premierTest.c:45