Logo Search packages:      
Sourcecode: kallery version File versions  Download package

Kallery::Kallery ( QWidget *  parent = 0,
const char *  name = 0 
)

construtor

Definition at line 50 of file kallery.cpp.

References addDescSourcePage(), addFirstPage(), addHtmlOptionsPage(), addImageHtmlPage(), addImageOptionsPage(), addImageThumbPage(), addLastPage(), addSelectSourcesPage(), addTargetPathPage(), addThumbSourcePage(), initFilters(), KalleryGlobals::options, OptionType::printToStdOut, KalleryFunctions::ref(), KalleryGlobals::ref(), KalleryGlobals::setBaseDir(), KalleryGlobals::setDefaultOptions(), slotPageHasChanged(), and slotShowHelp().

                                                  : KWizard(parent, name, false)
{
  
  
  kdDebug() << "Kallery is starting up." << endl;

  QString appBaseDir = KGlobal::dirs()->findResourceDir("data","kallery/images/kallery.png")+"kallery/";
  kdDebug() << "Kallery data dir is: " << appBaseDir << endl;

  if (appBaseDir == "kallery/")
  {
    KMessageBox::information(this,i18n("The base data directory [$KDEDIR/share/apps/kallery] seems to be invalid, so the generation may fail.\n")+
                            i18n("You may need to do a \"make install\".\n"),i18n("Warning"));
  }

  KalleryGlobals::ref()->setBaseDir(appBaseDir);
  

  // set text of buttons again, so our translation will be used
  // available by extract and merge messages
  nextButton()->setText(i18n("&Next"));

  //KalleryFunctions::ref() contains the non GUI releated tasks (except the progress bar)
  KalleryFunctions::ref(this);

  KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
  KalleryGlobals::ref()->options.printToStdOut = args->isSet("verbose");
  setCaption(i18n("Kallery wizard"));

  addFirstPage();
  addSelectSourcesPage();
  addThumbSourcePage();
  addImageThumbPage();
  addTargetPathPage();
  addDescSourcePage();
  addImageOptionsPage();
  addHtmlOptionsPage();
  addImageHtmlPage();
  addLastPage();

  kdDebug() << "All pages were added" << endl;

  connect(this,SIGNAL(selected(const QString &)),this,SLOT(slotPageHasChanged( const QString &)));
  connect(this,SIGNAL(helpClicked()),this,SLOT(slotShowHelp()));


  KalleryGlobals::ref()->setDefaultOptions();
 
  initFilters();
}


Generated by  Doxygen 1.6.0   Back to index