hideLinkInExport for Branches (Floats still missing). Floats are now OrnamentedObj.
3 #include "exportoofiledialog.h"
5 ExportOOFileDialog::ExportOOFileDialog():QFileDialog()
10 ExportOOFileDialog::ExportOOFileDialog (QWidget * parent, const char* name, bool modal):QFileDialog(parent, name,modal)
15 QString ExportOOFileDialog::selectedConfig()
17 QStringList::Iterator itpath=configPaths.begin();
18 QStringList::Iterator itf=filters.begin();
19 while (itf != filters.end())
21 if (*itf==lastFilter) return *itpath;
25 qWarning ("ExportOOFileDialog::selectedConfig No filter found!");
29 void ExportOOFileDialog::newConfigPath(const QString &s)
34 QString ExportOOFileDialog::selectedFile()
36 return QFileDialog::selectedFile();
40 void ExportOOFileDialog::addFilter(const QString &f)
44 QFileDialog::addFilter (f);
47 void ExportOOFileDialog::init()
49 setMode( QFileDialog::AnyFile );
51 d.setPath ("/usr/share/vym/exports");
53 d.setPath (d.homeDirPath()+"/.vym/exports");
55 d.setPath ("exports");
59 this,SIGNAL (filterSelected(const QString&)),
60 this, SLOT( newConfigPath(const QString &)));
63 void ExportOOFileDialog::scanExportConfigs(QDir d)
65 // Scan existing export configurations
71 d.setFilter( QDir::Files| QDir::Hidden | QDir::NoSymLinks );
72 const QFileInfoList *filelist = d.entryInfoList();
73 QFileInfoListIterator itfile( *filelist );
76 while ( (fi = itfile.current()) != 0 )
78 if (fi->fileName().endsWith(".conf") )
80 configPaths.append (fi->absFilePath());
82 set.readSettings (fi->absFilePath());
83 addFilter (set.readEntry("Name") + " (*.odp)");