1 /*! ========================================================================
4 ** $Id: onemoment.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
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.
18 ** === N O T E S ===========================================================
20 ** ========================================================================= */
22 /* === H E A D E R S ======================================================= */
34 #include <ETL/stringf>
36 #include <gtkmm/image.h>
37 #include <gdkmm/pixbufloader.h>
38 #include <gtkmm/button.h>
39 #include <gtkmm/label.h>
40 #include <gtkmm/fixed.h>
42 #include <synfig/general.h>
44 #include "onemoment.h"
51 using namespace studio;
53 /* === M A C R O S ========================================================= */
56 #define VERSION "unknown"
57 #define PACKAGE "synfigstudio"
63 # define IMAGE_DIR "share\\pixmaps"
68 # define IMAGE_DIR "/usr/local/share/pixmaps"
72 # define IMAGE_EXT "png"
75 /* === G L O B A L S ======================================================= */
77 /* === P R O C E D U R E S ================================================= */
79 /* === M E T H O D S ======================================================= */
81 OneMoment::OneMoment(): Gtk::Window(Gtk::WINDOW_POPUP)
84 // Create the Copyright Label
85 Gtk::Label *label = manage(new class Gtk::Label(_("One Moment, Please...")));
87 set_title(_("One Moment, Please..."));
89 property_window_position().set_value(Gtk::WIN_POS_CENTER);
93 Pango::AttrList attr_list;
94 Pango::AttrInt pango_size(Pango::Attribute::create_attr_size(Pango::SCALE*16));
95 pango_size.set_start_index(0);
96 pango_size.set_end_index(64);
97 attr_list.change(pango_size);
99 label->set_attributes(attr_list);
101 label->set_size_request(400,60);
103 get_root_window()->set_decorations(Gdk::DECOR_BORDER);
105 // show everything off
109 while(studio::App::events_pending())studio::App::iteration(false);
112 OneMoment::~OneMoment()