Date: | 2010-02-20 21:10:20 (14 years 1 month ago) |
---|---|
Author: | Mirko Lindner |
Commit: | 1d03169f6e06eae9d147e77cedb87344ed23b857 |
Message: | updates to dialog classes Signed-off-by: Mirko Lindner <mirko@sharism.cc> |
Files: |
src/message_dialog.cc (1 diff) src/message_dialog.hh (1 diff) src/search_dialog.cc (1 diff) |
Change Details
src/message_dialog.cc | ||
---|---|---|
25 | 25 | |
26 | 26 | message_dialog::message_dialog(main_window* parent, std::string title, std::string txt) |
27 | 27 | { |
28 | Gtk::Dialog dialog(title, parent, true); | |
29 | 28 | |
30 | 29 | Gtk::Label label(txt); |
31 | dialog.get_vbox()->pack_start(label, true, true); | |
32 | // Gtk::Entry entry; | |
33 | // entry.set_text(""); | |
34 | // dialog.get_vbox()->pack_start(entry, true, true); | |
35 | ||
36 | // dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); | |
37 | dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK); | |
38 | dialog.show_all(); | |
39 | int result = dialog.run(); | |
30 | this->get_vbox()->pack_start(label, true, true); | |
31 | this->add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK); | |
32 | this->show_all(); | |
33 | int result = this->run(); | |
40 | 34 | if (result == Gtk::RESPONSE_OK) { |
41 | 35 | |
42 | 36 | } else { |
src/message_dialog.hh | ||
---|---|---|
29 | 29 | |
30 | 30 | public: |
31 | 31 | message_dialog(main_window* parent, std::string, std::string); |
32 | message_dialog(main_window* parent, int cat); | |
32 | 33 | |
33 | 34 | }; |
34 | 35 |
src/search_dialog.cc | ||
---|---|---|
22 | 22 | #include "search_dialog.hh" |
23 | 23 | #include "vido.hh" |
24 | 24 | #include <gtkmm.h> |
25 | ||
25 | #include "main_window.hh" | |
26 | 26 | |
27 | 27 | search_dialog::search_dialog(main_window* parent, const Glib::ustring& input) |
28 | 28 | { |
29 | ||
29 | 30 | Gtk::Dialog dialog("Search", parent, true); |
30 | 31 | |
31 | 32 | Gtk::Label label("Enter search Term:"); |
Branches:
development
master