Changeset 8835374a5ff6f22b683226976026fe5ab83e05f8
- Timestamp:
- 01/06/07 23:37:43 (6 years ago)
- Author:
- Philipp Kern <phil@…>
- Parents:
- 6a0670a8459e5cf3b91239cc10ad8d5feaf36095
- Children:
- 990c82025388b2f0ff1e428dd3acb41b244f22b0
- git-committer:
- Philipp Kern <phil@0x539.de> / 2007-01-06T22:37:43Z+0000
- Message:
-
[project @ Introduced DefaultDialog? to allow to press Enter in dialogs]
Original author: Armin Burgmeier <armin@…>
Date: 2005-06-04 19:47:16+00:00
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rb2cc252
|
r8835374
|
|
| 26 | 26 | noinst_HEADERS += inc/mimemap.hpp |
| 27 | 27 | endif |
| | 28 | noinst_HEADERS += inc/defaultdialog.hpp |
| 28 | 29 | noinst_HEADERS += inc/historyentry.hpp |
| 29 | 30 | noinst_HEADERS += inc/logview.hpp |
| … |
… |
|
| 67 | 68 | gobby_SOURCES += src/mimemap.cpp |
| 68 | 69 | endif |
| | 70 | gobby_SOURCES += src/defaultdialog.cpp |
| 69 | 71 | gobby_SOURCES += src/historyentry.cpp |
| 70 | 72 | gobby_SOURCES += src/logview.cpp |
-
|
rbfb82f7
|
r8835374
|
|
| 20 | 20 | #define _GOBBY_ENTRYDIALOG_HPP_ |
| 21 | 21 | |
| 22 | | #include <gtkmm/dialog.h> |
| 23 | 22 | #include <gtkmm/label.h> |
| 24 | 23 | #include <gtkmm/entry.h> |
| | 24 | #include "defaultdialog.hpp" |
| 25 | 25 | |
| 26 | 26 | namespace Gobby |
| 27 | 27 | { |
| 28 | 28 | |
| 29 | | class EntryDialog : public Gtk::Dialog |
| | 29 | class EntryDialog : public DefaultDialog |
| 30 | 30 | { |
| 31 | 31 | public: |
-
|
r5773d3f
|
r8835374
|
|
| 20 | 20 | #define _GOBBY_HOSTDIALOG_HPP_ |
| 21 | 21 | |
| 22 | | #include <gtkmm/dialog.h> |
| 23 | 22 | #include <gtkmm/table.h> |
| 24 | 23 | #include <gtkmm/label.h> |
| … |
… |
|
| 26 | 25 | #include <gtkmm/entry.h> |
| 27 | 26 | #include <gtkmm/colorbutton.h> |
| | 27 | #include "defaultdialog.hpp" |
| 28 | 28 | #include "config.hpp" |
| 29 | 29 | |
| … |
… |
|
| 31 | 31 | { |
| 32 | 32 | |
| 33 | | class HostDialog : public Gtk::Dialog |
| | 33 | class HostDialog : public DefaultDialog |
| 34 | 34 | { |
| 35 | 35 | public: |
-
|
rbfb82f7
|
r8835374
|
|
| 20 | 20 | #define _GOBBY_JOINDIALOG_HPP_ |
| 21 | 21 | |
| 22 | | #include <gtkmm/dialog.h> |
| 23 | 22 | #include <gtkmm/table.h> |
| 24 | 23 | #include <gtkmm/label.h> |
| … |
… |
|
| 26 | 25 | #include <gtkmm/entry.h> |
| 27 | 26 | #include <gtkmm/colorbutton.h> |
| | 27 | #include "defaultdialog.hpp" |
| 28 | 28 | #include "config.hpp" |
| 29 | 29 | |
| … |
… |
|
| 31 | 31 | { |
| 32 | 32 | |
| 33 | | class JoinDialog : public Gtk::Dialog |
| | 33 | class JoinDialog : public DefaultDialog |
| 34 | 34 | { |
| 35 | 35 | public: |
-
|
rbfb82f7
|
r8835374
|
|
| 21 | 21 | #include "entrydialog.hpp" |
| 22 | 22 | |
| 23 | | Gobby::EntryDialog::EntryDialog(Gtk::Window& parent, const Glib::ustring& title, const Glib::ustring& label) |
| 24 | | : Gtk::Dialog(title, parent, true, true), |
| | 23 | Gobby::EntryDialog::EntryDialog(Gtk::Window& parent, |
| | 24 | const Glib::ustring& title, |
| | 25 | const Glib::ustring& label) |
| | 26 | : DefaultDialog(title, parent, true, true), |
| 25 | 27 | m_label(label), |
| 26 | 28 | m_box(false, 5) |
| … |
… |
|
| 31 | 33 | get_vbox()->set_spacing(5); |
| 32 | 34 | get_vbox()->pack_start(m_box); |
| | 35 | |
| | 36 | set_default_response(Gtk::RESPONSE_OK); |
| 33 | 37 | |
| 34 | 38 | add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); |
-
|
ra6a6f40
|
r8835374
|
|
| 22 | 22 | |
| 23 | 23 | Gobby::HostDialog::HostDialog(Gtk::Window& parent, Config& config) |
| 24 | | : Gtk::Dialog(_("Create obby session"), parent, true, true), m_config(config), |
| | 24 | : DefaultDialog(_("Create obby session"), parent, true, true), |
| | 25 | m_config(config), |
| 25 | 26 | m_table(3, 2), |
| 26 | 27 | m_lbl_port(_("Port:"), Gtk::ALIGN_RIGHT), |
-
|
ra6a6f40
|
r8835374
|
|
| 22 | 22 | |
| 23 | 23 | Gobby::JoinDialog::JoinDialog(Gtk::Window& parent, Gobby::Config& config) |
| 24 | | : Gtk::Dialog(_("Join obby session"), parent, true, true), m_config(config), |
| | 24 | : DefaultDialog(_("Join obby session"), parent, true, true), |
| | 25 | m_config(config), |
| 25 | 26 | m_table(4, 2), |
| 26 | 27 | m_lbl_host(_("Host:"), Gtk::ALIGN_RIGHT), |