diff options
| author | Slagvi Public <JandotDarowskiattgmaildottcom> | 2013-07-02 15:37:42 +0000 |
|---|---|---|
| committer | Slagvi Public <JandotDarowskiattgmaildottcom> | 2013-07-02 15:37:42 +0000 |
| commit | fdb68963cec5ddbd3eef111f4c95b7e049aa839c (patch) | |
| tree | 60c0d23f4f777ba5f5b030a80313b5c24beb265f /src/templates/new-from-template.cpp | |
| parent | Coding style fixes (diff) | |
| download | inkscape-fdb68963cec5ddbd3eef111f4c95b7e049aa839c.tar.gz inkscape-fdb68963cec5ddbd3eef111f4c95b7e049aa839c.zip | |
Adding NewFromTemplate to the Inkscape menu
(bzr r12379.2.5)
Diffstat (limited to 'src/templates/new-from-template.cpp')
| -rw-r--r-- | src/templates/new-from-template.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/templates/new-from-template.cpp b/src/templates/new-from-template.cpp deleted file mode 100644 index fc590d199..000000000 --- a/src/templates/new-from-template.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include "new-from-template.h" -#include "gtkmm/alignment.h" - -namespace Inkscape { -namespace UI { - - -NewFromTemplate::NewFromTemplate() - : _create_template_button("Create from template") -{ - set_title("New From Template"); - resize(400, 250); - - get_vbox()->pack_start(_main_widget); - _main_widget.append_page(_tab1, "Static Templates"); - _main_widget.append_page(_tab2, "Procedural Templates"); - - Gtk::Alignment *align; - align = manage(new Gtk::Alignment(Gtk::ALIGN_END, Gtk::ALIGN_CENTER, 0.0, 0.0)); - get_vbox()->pack_end(*align, Gtk::PACK_SHRINK, 5); - align->add(_create_template_button); - - _create_template_button.signal_pressed().connect( - sigc::mem_fun(*this, &NewFromTemplate::_createFromTemplate)); - - show_all(); -} - - -void NewFromTemplate::_createFromTemplate() -{ - if ( _main_widget.get_current_page() == 0 ) { - _tab1.createTemplate(); - } else { - _tab2.createTemplate(); - } - - response(0); -} - -} -} |
