Commit 20c6cc85 authored by Pipelier Quentin's avatar Pipelier Quentin
Browse files

[+] Ajout de deux champs de textes et un bouton (test de design)

parent 81e2975f
Pipeline #199447 passed with stages
in 17 minutes and 18 seconds
......@@ -4,7 +4,8 @@
#include <gtkmm.h>
class Interface{
protected:
public:
Interface(int argc, char* argv[]);
};
......
......@@ -3,11 +3,41 @@
Interface::Interface(int argc, char* argv[])
{
Gtk::Main app(argc, argv);
Gtk::Window window;
Gtk::Label label;
Gtk::Label label2;
Gtk::Notebook selector;
Gtk::Grid grid;
window.set_title("Clap Play");
window.resize(400, 200);
window.set_border_width(5);
// Création des champs textes
Gtk::Button button_generate;
Gtk::Entry entry_name_playlist;
entry_name_playlist.set_max_length(50);
Gtk::Entry entry_duration_playlist;
grid.attach(entry_name_playlist, 0, 0, 1, 1);
grid.attach(entry_duration_playlist, 1, 0, 1, 1);
button_generate.add_label("Générer");
grid.attach(button_generate, 0, 1, 2, 1);
grid.show_all();
label.set_text("page 1");
selector.append_page(label, "Listes des playlists");
selector.append_page(grid, "Créer une playlist");
std::cout << "test";
window.add(selector);
window.show_all_children();
Gtk::Main::run(window);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment