Changeset 7e4bcbf2dcc7a231b622bca6a9eff970dbdb2f01
- Timestamp:
- 01/06/07 23:52:54 (6 years ago)
- Author:
- Philipp Kern <phil@…>
- Parents:
- 02f4d24f066bb6163d7e9b6151e181809f89e59e
- Children:
- b2d3d8e4b4d1e6c62e91c812410f4aa345690d3c
- git-committer:
- Philipp Kern <phil@0x539.de> / 2007-01-06T22:52:54Z+0000
- Message:
-
[project @ Removed empty paned from window]
Original author: Armin Burgmeier <armin@…>
Date: 2005-11-12 13:20:15+00:00
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r34c0230
|
r7e4bcbf
|
|
| 128 | 128 | // GUI |
| 129 | 129 | Gtk::VBox m_mainbox; |
| 130 | | |
| 131 | 130 | Gtk::VPaned m_mainpaned; |
| 132 | | Gtk::HPaned m_subpaned; |
| 133 | 131 | |
| 134 | 132 | Gtk::Frame m_frame_chat; |
| 135 | | Gtk::Frame m_frame_list; |
| 136 | 133 | Gtk::Frame m_frame_text; |
| 137 | 134 | |
| 138 | 135 | Header m_header; |
| | 136 | UserList m_userlist; |
| 139 | 137 | |
| 140 | 138 | Folder m_folder; |
| 141 | | UserList m_userlist; |
| 142 | 139 | Chat m_chat; |
| 143 | 140 | StatusBar m_statusbar; |
-
|
r02f4d24
|
r7e4bcbf
|
|
| 56 | 56 | #endif |
| 57 | 57 | m_header(), |
| | 58 | m_userlist(*this, m_header), |
| 58 | 59 | m_folder(m_header, m_preferences), |
| 59 | | m_userlist(*this, m_header), |
| 60 | 60 | m_statusbar(m_header, m_folder) |
| 61 | 61 | { |
| … |
… |
|
| 93 | 93 | m_header.action_view_preferences->signal_activate().connect( |
| 94 | 94 | sigc::mem_fun(*this, &Window::on_view_preferences) ); |
| 95 | | /*m_header.view_language_event().connect( |
| 96 | | sigc::mem_fun(*this, &Window::on_view_language) );*/ |
| 97 | 95 | |
| 98 | 96 | m_header.action_help_about->signal_activate().connect( |
| … |
… |
|
| 116 | 114 | |
| 117 | 115 | m_frame_chat.set_shadow_type(Gtk::SHADOW_IN); |
| 118 | | m_frame_list.set_shadow_type(Gtk::SHADOW_IN); |
| 119 | 116 | m_frame_text.set_shadow_type(Gtk::SHADOW_IN); |
| 120 | 117 | |
| 121 | 118 | m_frame_chat.add(m_chat); |
| 122 | | //m_frame_list.add(m_userlist); |
| 123 | 119 | m_frame_text.add(m_folder); |
| 124 | 120 | |
| 125 | | m_subpaned.pack1(m_frame_text, true, false); |
| 126 | | m_subpaned.pack2(m_frame_list, true, false); |
| 127 | | |
| 128 | 121 | m_mainpaned.set_border_width(10); |
| 129 | | m_mainpaned.pack1(m_subpaned, true, false); |
| | 122 | m_mainpaned.pack1(m_frame_text, true, false); |
| 130 | 123 | m_mainpaned.pack2(m_frame_chat, true, false); |
| 131 | 124 | |
| … |
… |
|
| 173 | 166 | // Initialize paned sizes. This cannot be done in the constructor |
| 174 | 167 | // because the widget's sizes are not known. |
| 175 | | int submin = m_subpaned.property_min_position(); |
| 176 | | int submax = m_subpaned.property_max_position(); |
| 177 | 168 | int mainmin = m_mainpaned.property_min_position(); |
| 178 | 169 | int mainmax = m_mainpaned.property_max_position(); |
| 179 | 170 | |
| 180 | | m_subpaned.set_position(submin + (submax - submin) * 4 / 5); |
| 181 | 171 | m_mainpaned.set_position(mainmin + (mainmax - mainmin) * 3 / 4); |
| 182 | 172 | } |
| … |
… |
|
| 198 | 188 | m_buffer->document_remove_event().connect( |
| 199 | 189 | sigc::mem_fun(*this, &Window::on_obby_document_remove) ); |
| 200 | | |
| 201 | | /*m_buffer->message_event().connect( |
| 202 | | sigc::mem_fun(*this, &Window::on_obby_chat) ); |
| 203 | | m_buffer->server_message_event().connect( |
| 204 | | sigc::mem_fun(*this, &Window::on_obby_server_chat) );*/ |
| 205 | 190 | |
| 206 | 191 | // Accept drag and drop of files into the gobby window |
| … |
… |
|
| 774 | 759 | } |
| 775 | 760 | |
| 776 | | #if 0 |
| 777 | | void Gobby::Window::on_chat(const Glib::ustring& message) |
| 778 | | { |
| 779 | | // Send chat message via obby |
| 780 | | m_buffer->send_message(message); |
| 781 | | } |
| 782 | | #endif |
| 783 | | |
| 784 | 761 | /* Drag and Drop */ |
| 785 | 762 | void Gobby::Window::on_drag_data_received( |
| … |
… |
|
| 825 | 802 | } |
| 826 | 803 | |
| 827 | | #if 0 |
| 828 | | void Gobby::Window::on_obby_chat(const obby::user& user, |
| 829 | | const Glib::ustring& message) |
| 830 | | { |
| 831 | | // Got chat message |
| 832 | | m_chat.obby_message(user, message); |
| 833 | | } |
| 834 | | |
| 835 | | void Gobby::Window::on_obby_server_chat(const Glib::ustring& message) |
| 836 | | { |
| 837 | | // Got server chat message |
| 838 | | m_chat.obby_server_message(message); |
| 839 | | } |
| 840 | | #endif |
| 841 | | |
| 842 | 804 | void Gobby::Window::on_obby_user_join(const obby::user& user) |
| 843 | 805 | { |
| … |
… |
|
| 899 | 861 | m_local_file_path.clear(); |
| 900 | 862 | } |
| 901 | | |
| 902 | | #if 0 |
| 903 | | doc->get_document().signal_drag_data_received().connect( |
| 904 | | sigc::mem_fun(*this, &Window::on_drag_data_received) ); |
| 905 | | #endif |
| 906 | 863 | } |
| 907 | 864 | |