mirror of
git://projects.qi-hardware.com/vido.git
synced 2024-12-22 19:28:59 +02:00
updates to dialog classes
Signed-off-by: Mirko Lindner <mirko@sharism.cc>
This commit is contained in:
parent
e7a817a3c7
commit
1d03169f6e
@ -25,18 +25,12 @@
|
|||||||
|
|
||||||
message_dialog::message_dialog(main_window* parent, std::string title, std::string txt)
|
message_dialog::message_dialog(main_window* parent, std::string title, std::string txt)
|
||||||
{
|
{
|
||||||
Gtk::Dialog dialog(title, parent, true);
|
|
||||||
|
|
||||||
Gtk::Label label(txt);
|
Gtk::Label label(txt);
|
||||||
dialog.get_vbox()->pack_start(label, true, true);
|
this->get_vbox()->pack_start(label, true, true);
|
||||||
// Gtk::Entry entry;
|
this->add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);
|
||||||
// entry.set_text("");
|
this->show_all();
|
||||||
// dialog.get_vbox()->pack_start(entry, true, true);
|
int result = this->run();
|
||||||
|
|
||||||
// dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
|
|
||||||
dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);
|
|
||||||
dialog.show_all();
|
|
||||||
int result = dialog.run();
|
|
||||||
if (result == Gtk::RESPONSE_OK) {
|
if (result == Gtk::RESPONSE_OK) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -29,6 +29,7 @@ class message_dialog : public Gtk::Dialog{
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
message_dialog(main_window* parent, std::string, std::string);
|
message_dialog(main_window* parent, std::string, std::string);
|
||||||
|
message_dialog(main_window* parent, int cat);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -22,10 +22,11 @@
|
|||||||
#include "search_dialog.hh"
|
#include "search_dialog.hh"
|
||||||
#include "vido.hh"
|
#include "vido.hh"
|
||||||
#include <gtkmm.h>
|
#include <gtkmm.h>
|
||||||
|
#include "main_window.hh"
|
||||||
|
|
||||||
search_dialog::search_dialog(main_window* parent, const Glib::ustring& input)
|
search_dialog::search_dialog(main_window* parent, const Glib::ustring& input)
|
||||||
{
|
{
|
||||||
|
|
||||||
Gtk::Dialog dialog("Search", parent, true);
|
Gtk::Dialog dialog("Search", parent, true);
|
||||||
|
|
||||||
Gtk::Label label("Enter search Term:");
|
Gtk::Label label("Enter search Term:");
|
||||||
|
Loading…
Reference in New Issue
Block a user