1 /* === S Y N F I G ========================================================= */
2 /*! \file onemoment.cpp
6 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
8 ** This package is free software; you can redistribute it and/or
9 ** modify it under the terms of the GNU General Public License as
10 ** published by the Free Software Foundation; either version 2 of
11 ** the License, or (at your option) any later version.
13 ** This package is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ** General Public License for more details.
19 ** === N O T E S ===========================================================
21 ** ========================================================================= */
23 /* === H E A D E R S ======================================================= */
35 #include <ETL/stringf>
37 #include <gtkmm/image.h>
38 #include <gdkmm/pixbufloader.h>
39 #include <gtkmm/button.h>
40 #include <gtkmm/label.h>
41 #include <gtkmm/fixed.h>
43 #include <synfig/general.h>
45 #include "onemoment.h"
52 using namespace studio;
54 /* === M A C R O S ========================================================= */
57 #define VERSION "unknown"
58 #define PACKAGE "synfigstudio"
64 # define IMAGE_DIR "share\\pixmaps"
69 # define IMAGE_DIR "/usr/local/share/pixmaps"
73 # define IMAGE_EXT "png"
76 /* === G L O B A L S ======================================================= */
78 /* === P R O C E D U R E S ================================================= */
80 /* === M E T H O D S ======================================================= */
82 OneMoment::OneMoment(): Gtk::Window(Gtk::WINDOW_POPUP)
85 // Create the Copyright Label
86 Gtk::Label *label = manage(new class Gtk::Label(_("One Moment, Please...")));
88 set_title(_("One Moment, Please..."));
90 property_window_position().set_value(Gtk::WIN_POS_CENTER);
94 Pango::AttrList attr_list;
95 Pango::AttrInt pango_size(Pango::Attribute::create_attr_size(Pango::SCALE*16));
96 pango_size.set_start_index(0);
97 pango_size.set_end_index(64);
98 attr_list.change(pango_size);
100 label->set_attributes(attr_list);
102 label->set_size_request(400,60);
104 get_root_window()->set_decorations(Gdk::DECOR_BORDER);
106 // show everything off
110 while(studio::App::events_pending())studio::App::iteration(false);
113 OneMoment::~OneMoment()