X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fsplash.cpp;h=3f6263543fedb4a1feb419a59df4ecf617fbe613;hb=3aaa0f97639b12eb4fee879a8d540603c1ccdc1f;hp=e978dc171684959fce2635f16cf3aaae948c2afd;hpb=3e2b43e46d5e65edf081565e7a56d193ef716efd;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/splash.cpp b/synfig-studio/trunk/src/gtkmm/splash.cpp index e978dc1..3f62635 100644 --- a/synfig-studio/trunk/src/gtkmm/splash.cpp +++ b/synfig-studio/trunk/src/gtkmm/splash.cpp @@ -1,5 +1,5 @@ /* === S Y N F I G ========================================================= */ -/*! \file about.cpp +/*! \file splash.cpp ** \brief writeme ** ** $Id$ @@ -45,7 +45,7 @@ #include -#include "about.h" +#include "splash.h" #include "app.h" #include "general.h" @@ -87,20 +87,20 @@ extern const guint gtk_interface_age; /* === P R O C E D U R E S ================================================= */ -class studio::AboutProgress : public synfig::ProgressCallback +class studio::SplashProgress : public synfig::ProgressCallback { - About &about; + Splash &splash; public: - AboutProgress(About &about):about(about) { } + SplashProgress(Splash &splash):splash(splash) { } virtual bool task(const std::string &task) { - if(about.tasklabel) + if(splash.tasklabel) { - about.tasklabel->set_label(task); - about.tasklabel->show(); + splash.tasklabel->set_label(task); + splash.tasklabel->show(); } else { @@ -113,10 +113,10 @@ public: virtual bool error(const std::string &task) { - if(about.tasklabel) + if(splash.tasklabel) { - about.tasklabel->set_label(_("ERROR:")+task); - about.tasklabel->show(); + splash.tasklabel->set_label(_("ERROR:")+task); + splash.tasklabel->show(); } else { @@ -129,10 +129,10 @@ public: virtual bool warning(const std::string &task) { - if(about.tasklabel) + if(splash.tasklabel) { - about.tasklabel->set_label(_("WARNING:")+task); - about.tasklabel->show(); + splash.tasklabel->set_label(_("WARNING:")+task); + splash.tasklabel->show(); } else { @@ -145,10 +145,10 @@ public: virtual bool amount_complete(int current, int total) { - if(about.progressbar) + if(splash.progressbar) { - about.progressbar->set_fraction((float)current/(float)total); - about.progressbar->show(); + splash.progressbar->set_fraction((float)current/(float)total); + splash.progressbar->show(); } else cerr<set(imagepath+"about_dialog."IMAGE_EXT); + Logo->set(imagepath+"splash_screen."IMAGE_EXT); Logo->set_size_request(image_w,image_h); Logo->set_alignment(0.5,0.5); Logo->set_padding(0,0); @@ -309,17 +309,17 @@ About::About(): fixed1->show(); // Connect relevant signals - CloseButton->signal_clicked().connect(sigc::mem_fun(*this, &About::close)); + CloseButton->signal_clicked().connect(sigc::mem_fun(*this, &Splash::close)); - cb=new AboutProgress(*this); + cb=new SplashProgress(*this); } -About::~About() +Splash::~Splash() { delete cb; } -void About::close() +void Splash::close() { hide(); if(can_self_destruct) @@ -327,7 +327,7 @@ void About::close() } void -About::set_can_self_destruct(bool x) +Splash::set_can_self_destruct(bool x) { can_self_destruct=x; if(x==true) @@ -337,7 +337,7 @@ About::set_can_self_destruct(bool x) } synfig::ProgressCallback * -About::get_callback() +Splash::get_callback() { return cb; }