1 /* === S Y N F I G ========================================================= */
2 /*! \file onemoment.cpp
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 ** Copyright (c) 2007 Chris Moore
11 ** This package is free software; you can redistribute it and/or
12 ** modify it under the terms of the GNU General Public License as
13 ** published by the Free Software Foundation; either version 2 of
14 ** the License, or (at your option) any later version.
16 ** This package is distributed in the hope that it will be useful,
17 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ** General Public License for more details.
22 ** === N O T E S ===========================================================
24 ** ========================================================================= */
26 /* === H E A D E R S ======================================================= */
38 #include <ETL/stringf>
40 #include <gtkmm/image.h>
41 #include <gdkmm/pixbufloader.h>
42 #include <gtkmm/button.h>
43 #include <gtkmm/label.h>
44 #include <gtkmm/fixed.h>
46 #include <synfig/general.h>
48 #include "onemoment.h"
57 using namespace studio;
59 /* === M A C R O S ========================================================= */
62 #define VERSION "unknown"
63 #define PACKAGE "synfigstudio"
69 # define IMAGE_DIR "share\\pixmaps"
74 # define IMAGE_DIR "/usr/local/share/pixmaps"
78 # define IMAGE_EXT "png"
81 /* === G L O B A L S ======================================================= */
83 /* === P R O C E D U R E S ================================================= */
85 /* === M E T H O D S ======================================================= */
87 OneMoment::OneMoment():
88 Gtk::Window(getenv("SYNFIG_DISABLE_POPUP_WINDOWS") ? Gtk::WINDOW_TOPLEVEL : Gtk::WINDOW_POPUP)
90 // Create the Copyright Label
91 Gtk::Label *label = manage(new class Gtk::Label(_("One Moment, Please...")));
93 set_title(_("One Moment, Please..."));
95 property_window_position().set_value(Gtk::WIN_POS_CENTER);
99 Pango::AttrList attr_list;
100 Pango::AttrInt pango_size(Pango::Attribute::create_attr_size(Pango::SCALE*16));
101 pango_size.set_start_index(0);
102 pango_size.set_end_index(64);
103 attr_list.change(pango_size);
105 label->set_attributes(attr_list);
107 label->set_size_request(400,60);
109 get_root_window()->set_decorations(Gdk::DECOR_BORDER);
111 // show everything off
115 while(studio::App::events_pending())studio::App::iteration(false);
118 OneMoment::~OneMoment()