diff options
| author | Ted Gould <ted@gould.cx> | 2006-03-29 05:40:31 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2006-03-29 05:40:31 +0000 |
| commit | f8ed0faa3975159b414028b2c2a5ae7d0003a89b (patch) | |
| tree | 565d957d09b78451514c36236f3b133959814b5a /src/ui/dialog/extension-editor.cpp | |
| parent | r10951@tres: ted | 2006-02-16 08:56:41 -0800 (diff) | |
| download | inkscape-f8ed0faa3975159b414028b2c2a5ae7d0003a89b.tar.gz inkscape-f8ed0faa3975159b414028b2c2a5ae7d0003a89b.zip | |
r10952@tres: ted | 2006-02-16 09:17:08 -0800
Stole the basics from the Inkscape preferences dialog. That's kinda the
style I'm looking for. Now, to embrace and extend it.
(bzr r342)
Diffstat (limited to 'src/ui/dialog/extension-editor.cpp')
| -rw-r--r-- | src/ui/dialog/extension-editor.cpp | 45 |
1 files changed, 42 insertions, 3 deletions
diff --git a/src/ui/dialog/extension-editor.cpp b/src/ui/dialog/extension-editor.cpp index 2b17983ce..aca41f6f6 100644 --- a/src/ui/dialog/extension-editor.cpp +++ b/src/ui/dialog/extension-editor.cpp @@ -3,8 +3,9 @@ * * Authors: * Bryce W. Harrington <bryce@bryceharrington.org> + * Ted Gould <ted@gould.cx> * - * Copyright (C) 2004, 2005 Authors + * Copyright (C) 2004-2006 Authors * * Released under GNU GPL. Read the file 'COPYING' for more information. */ @@ -13,6 +14,10 @@ # include <config.h> #endif +#include <gtkmm/frame.h> +#include <gtkmm/scrolledwindow.h> +#include <gtkmm/alignment.h> + #include "extension-editor.h" #include "verbs.h" @@ -21,9 +26,43 @@ namespace UI { namespace Dialog { ExtensionEditor::ExtensionEditor() - : Dialog ("dialogs.extensioneditor", SP_VERB_NONE /*FIXME*/) + : Dialog ("dialogs.extensioneditor", SP_VERB_DIALOG_EXTENSIONEDITOR) { - // TODO: Insert widgets + + //Main HBox + Gtk::HBox* hbox_list_page = Gtk::manage(new Gtk::HBox()); + hbox_list_page->set_border_width(12); + hbox_list_page->set_spacing(12); + this->get_vbox()->add(*hbox_list_page); + + + //Pagelist + Gtk::Frame* list_frame = Gtk::manage(new Gtk::Frame()); + Gtk::ScrolledWindow* scrolled_window = Gtk::manage(new Gtk::ScrolledWindow()); + hbox_list_page->pack_start(*list_frame, false, true, 0); + _page_list.set_headers_visible(false); + scrolled_window->set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); + scrolled_window->add(_page_list); + list_frame->set_shadow_type(Gtk::SHADOW_IN); + list_frame->add(*scrolled_window); + _page_list_model = Gtk::TreeStore::create(_page_list_columns); + _page_list.set_model(_page_list_model); + _page_list.append_column("name",_page_list_columns._col_name); + Glib::RefPtr<Gtk::TreeSelection> page_list_selection = _page_list.get_selection(); + page_list_selection->signal_changed().connect(sigc::mem_fun(*this, &ExtensionEditor::on_pagelist_selection_changed)); + page_list_selection->set_mode(Gtk::SELECTION_BROWSE); + + + //Pages + Gtk::VBox* vbox_page = Gtk::manage(new Gtk::VBox()); + Gtk::Frame* title_frame = Gtk::manage(new Gtk::Frame()); + hbox_list_page->pack_start(*vbox_page, true, true, 0); + title_frame->add(_page_title); + vbox_page->pack_start(*title_frame, false, false, 0); + vbox_page->pack_start(_page_frame, true, true, 0); + _page_frame.set_shadow_type(Gtk::SHADOW_IN); + title_frame->set_shadow_type(Gtk::SHADOW_IN); + show_all_children(); } |
