From 661141bd4c4c3de8ad648c971ee2aeeca2585c13 Mon Sep 17 00:00:00 2001 From: Mika Date: Tue, 8 Apr 2014 13:02:08 +0200 Subject: [PATCH] =?UTF-8?q?Interface=20graphique,=20lance=20chaque=20fen?= =?UTF-8?q?=C3=AAtre=20en=20cliquant=20sur=20le=20bouton=20ad=C3=A9quat,?= =?UTF-8?q?=20et=20pour=20le=20m=C3=AAme=20ferme=20quand=20on=20clique=20s?= =?UTF-8?q?ur=20"lecture"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...etreedition.glade => fenetreEdition.glade} | 0 ...truments.glade => fenetreInstrument.glade} | 0 ...eInstruments2.glade => fenetreMotif.glade} | 0 ...incipale.glade => fenetrePrincipale.glade} | 3 +- sources/GUI/makefile | 10 + sources/GUI/ponytracker.glade | 3310 +++++++++++++++++ sources/GUI/premierTest | Bin 0 -> 13264 bytes sources/GUI/premierTest.c | 78 + 8 files changed, 3400 insertions(+), 1 deletion(-) rename sources/GUI/{Glade_Fenetreedition.glade => fenetreEdition.glade} (100%) rename sources/GUI/{Glade_Fenetreinstruments.glade => fenetreInstrument.glade} (100%) rename sources/GUI/{Glade_FenetreInstruments2.glade => fenetreMotif.glade} (100%) rename sources/GUI/{GladeV2_FenetrePrincipale.glade => fenetrePrincipale.glade} (99%) create mode 100644 sources/GUI/makefile create mode 100644 sources/GUI/ponytracker.glade create mode 100644 sources/GUI/premierTest create mode 100644 sources/GUI/premierTest.c diff --git a/sources/GUI/Glade_Fenetreedition.glade b/sources/GUI/fenetreEdition.glade similarity index 100% rename from sources/GUI/Glade_Fenetreedition.glade rename to sources/GUI/fenetreEdition.glade diff --git a/sources/GUI/Glade_Fenetreinstruments.glade b/sources/GUI/fenetreInstrument.glade similarity index 100% rename from sources/GUI/Glade_Fenetreinstruments.glade rename to sources/GUI/fenetreInstrument.glade diff --git a/sources/GUI/Glade_FenetreInstruments2.glade b/sources/GUI/fenetreMotif.glade similarity index 100% rename from sources/GUI/Glade_FenetreInstruments2.glade rename to sources/GUI/fenetreMotif.glade diff --git a/sources/GUI/GladeV2_FenetrePrincipale.glade b/sources/GUI/fenetrePrincipale.glade similarity index 99% rename from sources/GUI/GladeV2_FenetrePrincipale.glade rename to sources/GUI/fenetrePrincipale.glade index fb42b76..d989eff 100644 --- a/sources/GUI/GladeV2_FenetrePrincipale.glade +++ b/sources/GUI/fenetrePrincipale.glade @@ -129,10 +129,11 @@ - + True True True + True diff --git a/sources/GUI/makefile b/sources/GUI/makefile new file mode 100644 index 0000000..fa26de8 --- /dev/null +++ b/sources/GUI/makefile @@ -0,0 +1,10 @@ +all : premierTest clean + +premierTest : premierTest.o + gcc -Wall premierTest.o -o premierTest `pkg-config --cflags --libs gtk+-3.0 gmodule-2.0` + +premierTest.o : premierTest.c + gcc -Wall -c premierTest.c `pkg-config --cflags --libs gtk+-3.0 gmodule-2.0` + +clean : premierTest + rm *~ *.o diff --git a/sources/GUI/ponytracker.glade b/sources/GUI/ponytracker.glade new file mode 100644 index 0000000..6660b03 --- /dev/null +++ b/sources/GUI/ponytracker.glade @@ -0,0 +1,3310 @@ + + + + + False + + + True + False + + + True + False + + + True + True + + True + + + 0 + 0 + 1 + 1 + + + + + True + True + + True + + + 1 + 0 + 1 + 1 + + + + + True + True + + True + + + 0 + 1 + 1 + 1 + + + + + True + True + + True + + + 0 + 2 + 1 + 1 + + + + + True + True + + True + + + 0 + 3 + 1 + 1 + + + + + True + True + + True + + + 0 + 4 + 1 + 1 + + + + + True + True + + True + + + 0 + 5 + 1 + 1 + + + + + True + True + + True + + + 0 + 6 + 1 + 1 + + + + + True + True + + True + + + 0 + 7 + 1 + 1 + + + + + True + True + + True + + + 0 + 8 + 1 + 1 + + + + + True + True + + True + + + 0 + 9 + 1 + 1 + + + + + True + True + + True + + + 1 + 1 + 1 + 1 + + + + + True + True + + True + + + 1 + 2 + 1 + 1 + + + + + True + True + + True + + + 1 + 3 + 1 + 1 + + + + + True + True + + True + + + 1 + 4 + 1 + 1 + + + + + True + True + + True + + + 1 + 5 + 1 + 1 + + + + + True + True + + True + + + 1 + 6 + 1 + 1 + + + + + True + True + + True + + + 1 + 7 + 1 + 1 + + + + + True + True + + True + + + 1 + 8 + 1 + 1 + + + + + True + True + + True + + + 1 + 9 + 1 + 1 + + + + + 0 + 0 + 1 + 1 + + + + + 350 + True + False + + + 200 + True + True + True + + + True + False + gtk-add + + + + + False + True + 0 + + + + + 200 + True + True + True + + + True + False + gtk-remove + + + + + False + True + 1 + + + + + 0 + 1 + 1 + 1 + + + + + True + False + + + Enveloppe sonore + True + True + False + 0 + True + + + 0 + 0 + 1 + 1 + + + + + Réverbération + True + True + False + 0 + True + + + 0 + 1 + 1 + 1 + + + + + True + True + True + none + False + vertical + + + 1 + 0 + 1 + 1 + + + + + True + True + True + none + False + vertical + + + 1 + 1 + 1 + 1 + + + + + 1 + 0 + 1 + 1 + + + + + + + + + + False + + + True + False + + + True + True + True + + + True + False + gtk-add + + + + + 0 + 10 + 1 + 1 + + + + + True + True + True + + + True + False + gtk-remove + + + + + 1 + 10 + 1 + 1 + + + + + Jouer en boucle + True + True + False + 0 + True + + + 0 + 11 + 1 + 1 + + + + + True + False + Nombre de temps : + + + 0 + 12 + 1 + 1 + + + + + True + True + + True + + + 1 + 12 + 1 + 1 + + + + + True + True + + True + + + 0 + 9 + 1 + 1 + + + + + True + True + + True + + + 1 + 9 + 1 + 1 + + + + + True + True + + True + + + 2 + 9 + 1 + 1 + + + + + True + True + + True + + + 0 + 8 + 1 + 1 + + + + + True + True + + True + + + 0 + 7 + 1 + 1 + + + + + True + True + + True + + + 0 + 6 + 1 + 1 + + + + + True + True + + True + + + 0 + 5 + 1 + 1 + + + + + True + True + + True + + + 0 + 4 + 1 + 1 + + + + + True + True + + True + + + 0 + 3 + 1 + 1 + + + + + True + True + + True + + + 0 + 2 + 1 + 1 + + + + + True + True + + True + + + 0 + 1 + 1 + 1 + + + + + True + True + + True + + + 0 + 0 + 1 + 1 + + + + + True + True + + True + + + 1 + 8 + 1 + 1 + + + + + True + True + + True + + + 1 + 7 + 1 + 1 + + + + + True + True + + True + + + 1 + 6 + 1 + 1 + + + + + True + True + + True + + + 1 + 5 + 1 + 1 + + + + + True + True + + True + + + 1 + 4 + 1 + 1 + + + + + True + True + + True + + + 1 + 3 + 1 + 1 + + + + + True + True + + True + + + 1 + 2 + 1 + 1 + + + + + True + True + + True + + + 1 + 1 + 1 + 1 + + + + + True + True + + True + + + 1 + 0 + 1 + 1 + + + + + True + True + + True + + + 2 + 0 + 1 + 1 + + + + + True + True + + True + + + 2 + 1 + 1 + 1 + + + + + True + True + + True + + + 2 + 2 + 1 + 1 + + + + + True + True + + True + + + 2 + 3 + 1 + 1 + + + + + True + True + + True + + + 2 + 4 + 1 + 1 + + + + + True + True + + True + + + 2 + 5 + 1 + 1 + + + + + True + True + + True + + + 2 + 6 + 1 + 1 + + + + + True + True + + True + + + 2 + 7 + 1 + 1 + + + + + True + True + + True + + + 2 + 8 + 1 + 1 + + + + + True + False + + + 1 + 11 + 1 + 1 + + + + + True + False + + + 2 + 11 + 1 + 1 + + + + + True + False + + + 2 + 12 + 1 + 1 + + + + + True + False + + + 2 + 10 + 1 + 1 + + + + + + + False + + + True + False + + + 150 + 0 + True + False + vertical + 10 + + + True + False + start + + + True + True + True + + + True + False + gtk-add + + + + + False + True + 0 + + + + + True + True + True + + + True + False + gtk-remove + + + + + False + True + 1 + + + + + True + True + True + + + True + False + gtk-media-play + + + + + False + True + 2 + + + + + True + True + True + + + True + False + gtk-stop + + + + + False + True + 3 + + + + + False + True + 0 + + + + + True + False + vertical + + + True + True + + True + + + False + True + 0 + + + + + True + True + + True + + + False + True + 1 + + + + + True + True + + True + + + False + True + 2 + + + + + True + True + + True + + + False + True + 3 + + + + + True + True + + True + + + False + True + 4 + + + + + True + True + + True + + + False + True + 5 + + + + + True + True + + True + + + False + True + 6 + + + + + True + True + + True + + + False + True + 7 + + + + + True + True + + True + + + False + True + 8 + + + + + True + True + + True + + + False + True + 9 + + + + + True + True + + True + + + False + True + 10 + + + + + True + True + + True + + + False + True + 11 + + + + + True + True + + True + + + False + True + 12 + + + + + True + True + + True + + + False + True + 13 + + + + + True + True + + True + + + False + True + 14 + + + + + True + True + + True + + + False + True + 15 + + + + + True + True + + True + + + False + True + 16 + + + + + True + True + + True + + + False + True + 17 + + + + + True + True + + True + + + False + True + 18 + + + + + True + True + + True + + + False + True + 19 + + + + + False + True + 1 + + + + + False + True + 0 + + + + + 800 + True + False + vertical + + + 0 + 150 + True + False + + + 250 + True + False + vertical + 10 + + + 0 + True + True + + True + + + False + True + 0 + + + + + True + False + + + False + True + 1 + + + + + False + True + 0 + + + + + 250 + True + False + + + 150 + True + False + 0.30000001192092896 + 0.05000000074505806 + Correspond à : + + + False + True + 0 + + + + + 200 + True + False + + + la note + 0 + True + True + False + 0 + True + True + + + 0 + 0 + 1 + 1 + + + + + la fréquence (Hz) + True + True + False + 0 + True + True + + + 0 + 1 + 1 + 1 + + + + + automatique + True + True + False + 0 + True + True + + + 0 + 2 + 1 + 1 + + + + + True + True + + True + + + 1 + 0 + 1 + 1 + + + + + True + True + + True + + + 1 + 1 + 1 + 1 + + + + + True + False + + + 1 + 2 + 1 + 1 + + + + + False + True + 1 + + + + + False + True + 1 + + + + + False + True + 0 + + + + + + + + False + True + 1 + + + + + + + False + + + True + False + vertical + + + 0 + 0 + True + False + 7 + 50 + + + 0 + 0 + True + False + 4 + + + 3 + 0 + True + True + True + + + True + False + 0.43000000715255737 + gtk-floppy + + + + + 0 + 0 + 1 + 1 + + + + + True + True + True + right + + + True + False + gtk-file + + + + + 1 + 0 + 1 + 1 + + + + + True + True + True + 0.44999998807907104 + + + True + False + gtk-undo + + + + + 2 + 0 + 1 + 1 + + + + + True + True + True + + + True + False + gtk-jump-to + + + + + 3 + 0 + 1 + 1 + + + + + True + True + True + + + True + False + gtk-media-rewind + + + + + 0 + 1 + 1 + 1 + + + + + True + True + True + + + + True + False + gtk-media-play + + + + + 1 + 1 + 1 + 1 + + + + + True + True + True + + + True + False + gtk-stop + + + + + 2 + 1 + 1 + 1 + + + + + True + True + True + + + True + False + gtk-media-forward + + + + + 3 + 1 + 1 + 1 + + + + + False + True + 0 + + + + + True + False + vertical + start + + + True + False + + + 0 + 0 + True + True + + A/20 : C/40 : 2/6 + + + False + True + 0 + + + + + 40 + 0 + True + True + + 1'26" + + + False + True + 1 + + + + + False + True + 0 + + + + + True + False + + + 40 + 0 + True + False + 0.40000000596046448 + G + + + False + True + 0 + + + + + 350 + True + False + 0.59999999999999998 + 0.20000000000000001 + + + False + True + 1 + + + + + False + True + 1 + + + + + True + False + + + 40 + 0 + True + False + D + + + False + True + 0 + + + + + 350 + True + False + 0.80000000000000004 + + + False + True + 1 + + + + + False + True + 2 + + + + + False + True + 1 + + + + + True + False + vertical + + + Sample + True + True + True + + + + False + True + 0 + + + + + Instruments + True + True + True + + + + False + True + 1 + + + + + Motifs + True + True + True + + + + False + True + 2 + + + + + True + False + + + Notes + True + True + True + 0.51999998092651367 + + + False + True + 0 + + + + + Effets + True + True + True + 0.38999998569488525 + + + False + True + 1 + + + + + False + True + 3 + + + + + False + True + 2 + + + + + 150 + 0 + True + False + vertical + + + True + False + + + 75 + 0 + True + False + BPM : + + + False + True + 0 + + + + + 0 + 0 + True + True + + + + False + True + 1 + + + + + False + True + 0 + + + + + True + False + + + 75 + True + False + Ticks : + + + False + True + 0 + + + + + True + True + + + + False + True + 1 + + + + + False + True + 1 + + + + + True + False + 0 + Instrument : + + + False + True + 2 + + + + + True + True + + 1 : Basse + 1 + + + False + True + 3 + + + + + False + True + 3 + + + + + False + True + 0 + + + + + 300 + True + False + + + 50 + True + True + + + + 0 + 0 + 1 + 1 + + + + + True + True + + + + 0 + 1 + 1 + 1 + + + + + True + True + + + + 0 + 2 + 1 + 1 + + + + + True + True + + + + 0 + 3 + 1 + 1 + + + + + True + True + + + + 0 + 4 + 1 + 1 + + + + + True + True + + + + 0 + 5 + 1 + 1 + + + + + True + True + + + + 0 + 6 + 1 + 1 + + + + + True + True + + + + 0 + 7 + 1 + 1 + + + + + True + True + + + + 0 + 8 + 1 + 1 + + + + + True + True + + + + 0 + 9 + 1 + 1 + + + + + True + True + + + + 0 + 10 + 1 + 1 + + + + + True + True + + + + 0 + 11 + 1 + 1 + + + + + True + True + + + + 0 + 12 + 1 + 1 + + + + + True + True + + + + 0 + 13 + 1 + 1 + + + + + True + True + + + + 0 + 14 + 1 + 1 + + + + + True + True + + + + 0 + 15 + 1 + 1 + + + + + True + True + + + + 0 + 16 + 1 + 1 + + + + + True + True + + + + 0 + 17 + 1 + 1 + + + + + True + True + + + + 1 + 1 + 1 + 1 + + + + + True + True + + + + 1 + 0 + 1 + 1 + + + + + True + True + + + + 1 + 2 + 1 + 1 + + + + + True + True + + + + 1 + 3 + 1 + 1 + + + + + True + True + + + + 1 + 4 + 1 + 1 + + + + + True + True + + + + 1 + 5 + 1 + 1 + + + + + True + True + + + + 1 + 6 + 1 + 1 + + + + + True + True + + + + 1 + 7 + 1 + 1 + + + + + True + True + + + + 1 + 8 + 1 + 1 + + + + + True + True + + + + 1 + 9 + 1 + 1 + + + + + True + True + + + + 1 + 10 + 1 + 1 + + + + + True + True + + + + 1 + 11 + 1 + 1 + + + + + True + True + + + + 1 + 12 + 1 + 1 + + + + + True + True + + + + 1 + 13 + 1 + 1 + + + + + True + True + + + + 1 + 14 + 1 + 1 + + + + + True + True + + + + 1 + 15 + 1 + 1 + + + + + True + True + + + + 1 + 16 + 1 + 1 + + + + + True + True + + + + 1 + 17 + 1 + 1 + + + + + True + True + + + + 2 + 3 + 1 + 1 + + + + + True + True + + + + 2 + 0 + 1 + 1 + + + + + True + True + + + + 2 + 1 + 1 + 1 + + + + + True + True + + + + 2 + 2 + 1 + 1 + + + + + True + True + + + + 2 + 4 + 1 + 1 + + + + + True + True + + + + 2 + 5 + 1 + 1 + + + + + True + True + + + + 2 + 6 + 1 + 1 + + + + + True + True + + + + 2 + 7 + 1 + 1 + + + + + True + True + + + + 2 + 8 + 1 + 1 + + + + + True + True + + + + 2 + 9 + 1 + 1 + + + + + True + True + + + + 2 + 10 + 1 + 1 + + + + + True + True + + + + 2 + 11 + 1 + 1 + + + + + True + True + + + + 2 + 12 + 1 + 1 + + + + + True + True + + + + 2 + 13 + 1 + 1 + + + + + True + True + + + + 2 + 14 + 1 + 1 + + + + + True + True + + + + 2 + 15 + 1 + 1 + + + + + True + True + + + + 2 + 16 + 1 + 1 + + + + + True + True + + + + 2 + 17 + 1 + 1 + + + + + True + True + + + + 3 + 0 + 1 + 1 + + + + + True + True + + + + 3 + 1 + 1 + 1 + + + + + True + True + + + + 3 + 2 + 1 + 1 + + + + + True + True + + + + 4 + 1 + 1 + 1 + + + + + 100 + True + True + + + + 4 + 0 + 1 + 1 + + + + + True + True + + + + 3 + 3 + 1 + 1 + + + + + True + True + + + + 3 + 4 + 1 + 1 + + + + + True + True + + + + 3 + 5 + 1 + 1 + + + + + True + True + + + + 3 + 6 + 1 + 1 + + + + + True + True + + + + 3 + 7 + 1 + 1 + + + + + True + True + + + + 3 + 8 + 1 + 1 + + + + + True + True + + + + 3 + 9 + 1 + 1 + + + + + True + True + + + + 3 + 10 + 1 + 1 + + + + + True + True + + + + 3 + 11 + 1 + 1 + + + + + True + True + + + + 3 + 12 + 1 + 1 + + + + + True + True + + + + 3 + 13 + 1 + 1 + + + + + True + True + + + + 3 + 14 + 1 + 1 + + + + + True + True + + + + 3 + 15 + 1 + 1 + + + + + True + True + + + + 3 + 16 + 1 + 1 + + + + + True + True + + + + 3 + 17 + 1 + 1 + + + + + True + True + + + + 4 + 2 + 1 + 1 + + + + + True + True + + + + 4 + 3 + 1 + 1 + + + + + True + True + + + + 4 + 4 + 1 + 1 + + + + + True + True + + + + 4 + 5 + 1 + 1 + + + + + True + True + + + + 4 + 6 + 1 + 1 + + + + + True + True + + + + 4 + 7 + 1 + 1 + + + + + True + True + + + + 4 + 8 + 1 + 1 + + + + + True + True + + + + 4 + 9 + 1 + 1 + + + + + True + True + + + + 4 + 10 + 1 + 1 + + + + + True + True + + + + 4 + 11 + 1 + 1 + + + + + True + True + + + + 4 + 13 + 1 + 1 + + + + + True + True + + + + 4 + 12 + 1 + 1 + + + + + True + True + + + + 4 + 14 + 1 + 1 + + + + + True + True + + + + 4 + 15 + 1 + 1 + + + + + True + True + + + + 4 + 16 + 1 + 1 + + + + + True + True + + + + 4 + 17 + 1 + 1 + + + + + False + True + 1 + + + + + + diff --git a/sources/GUI/premierTest b/sources/GUI/premierTest new file mode 100644 index 0000000000000000000000000000000000000000..3d9926312608579b9fb286146afe7e3de0c89498 GIT binary patch literal 13264 zcmeHNZ*WxA6~DV1LIPwHFj^E#o~=57lO+j=@&DU|gbfWbg+*y0zP#+dBnz9}u=`dL zOKYY9+f=dCDpJRB=!dp`pbj6bgMX@_abVio4*o3;+F?MQ1fkVRnT)NZ=iGbG?%lV$ z4AYr@>E!ObckcP!-?{g^^WM96-+SkQrq*V+%f+a;*&PhE_Srgz#GbJe*Kk#0^{kZX zY$02~iUFAco6cKMiWyfO@yiD;(8WcN+5Lq9LIR7m1lIbNZ-j7tAW(s@`KjdZP8 zzBC%Hjz(gsf$D+!71b-2`;u{A9Y1dDAGxdA*7K1ljv8p_b0usTYHY86uj=@FgVEm9 zsdc|-yW{73o_Q(Rfo<3a+RcRR(TbrGc1>mJkBW-ReptjBun)BY2&*u zoqBZpoLiolz5g4hMmIn3R*juEFLkRnUJ0o6ojuomow75+88jbsWEv4LR_3 zz%}T{$-fEkxvZR3$oq-zn*%V~JXXf^IXWMAuN=J@_=q2q_-u*e{fs!xj}m4Fp)!xn zW*cVd1aY}h@=wWr9+9mPiBFXYKH=8`Ucs)+iNk%8zuPPLmh5LY$Gxmb9+!mKgOblA z4k|BuB)-)#E`$5I$KF!C3~%8YW*9wv@tBdc&4g_j%vgP&vDWH|ByB6v7&VhgE6I$O z;2I-rB_teN(-@7%tf1KywM1Lq78t|mN=2ezXoTXim=&^(WTYo%Mw1NN`piho*qV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TIh05~u%N6uaMYJa;}B16(7LBLBkq z3LvW|0LQq|x=4((9M8=!{YQa*ieZt-7q=@oUdEjHpVvyI*nLI_b5WCwQcx8LQWN7wPc+_TMvbr?Pb3X9 zHNfDJ8IluiE9_gbY{iY3znDwnDT(4y9C9D+#2^z7@8MKm-yoPM8qa3TqV^}OzKE3w zT1lIG-n`borpah(TZ!4V{5Yr{PR5O1GZw})+LhmG^RH=X1O}wnrrG#HA>BFTV5+0> zj9q4|YQ3w$-)h{|+`O(SXaxNYtxYhFNa9pdGac!hm{^;WMq4=BRb+r^tnK+%&o0U1rQ%n`7^5*SgZtq1?OqG;Xk=L3|H>FW?6OQwxCJW~;mi3(J jo(Cl-jaJvy^i}D!k}TxNx>kdlodL~ruj%5>%Dny$HHeog literal 0 HcmV?d00001 diff --git a/sources/GUI/premierTest.c b/sources/GUI/premierTest.c new file mode 100644 index 0000000..1784c2f --- /dev/null +++ b/sources/GUI/premierTest.c @@ -0,0 +1,78 @@ + +#include +#include +#include + +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); + + maFenetre = GTK_WIDGET( gtk_builder_get_object( monBuilder, "fenetrePrincipale")); + + gtk_widget_show_all (maFenetre); + gtk_main(); + return 0; +} + +void lecture () +{ + gtk_main_quit(); +} + +void ajouterSample ( int argc, char *argv[] ) +{ + 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); + + maFenetreSample = GTK_WIDGET( gtk_builder_get_object( monBuilderSample, "ajoutSample")); + + gtk_widget_show_all (maFenetreSample); +} + +void ajouterInstrument ( int argc, char *argv[] ) +{ + 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); + + maFenetreInstrument = GTK_WIDGET( gtk_builder_get_object( monBuilderInstrument, "ajoutInstrument")); + + gtk_widget_show_all (maFenetreInstrument); +} + +void ajouterMotif ( int argc, char *argv[] ) +{ + 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); + + maFenetreMotif = GTK_WIDGET( gtk_builder_get_object( monBuilderMotif, "ajoutMotif")); + + gtk_widget_show_all (maFenetreMotif); +}