20 #include "kpfileselectpage.h"
21 #include "tdefilelist.h"
24 #include <tqstringlist.h>
27 #include <tdelocale.h>
28 #include <kiconloader.h>
30 KPFileSelectPage::KPFileSelectPage(TQWidget *parent,
const char *name)
33 setTitle(i18n(
"&Files"));
36 m_files =
new KFileList(
this);
38 TQHBoxLayout *l0 =
new TQHBoxLayout(
this, 0, 10);
39 l0->addWidget(m_files);
44 void KPFileSelectPage::getOptions(TQMap<TQString,TQString>& opts,
bool incldef)
50 TQStringList l = m_files->fileList();
51 opts[
"kde-filelist"] = l.join(
"@@");
55 void KPFileSelectPage::setOptions(
const TQMap<TQString,TQString>& opts)
60 TQStringList l = TQStringList::split(
"@@", opts[
"kde-filelist"],
false);
61 m_files->setFileList(l);
This class is intended to be used as base class for customized print dialog page.