30 #ifndef STDSTORAGEDIALOG_H 31 #define STDSTORAGEDIALOG_H 37 #include <QTreeWidgetItem> 40 class StdStorageDialog;
47 class StorageInterface;
48 class ReportInterface;
59 ShowStorageSelect = 0x01,
68 void setUrl(
const QString & url);
70 void setViewOptions(ViewOptions f);
71 void setExtensionAutocomplete(
bool b);
73 void setCurrentStorage(
const QString & storageName,
bool exclusive =
false);
74 QString currentStorageName();
83 void setNameFilters(
const QStringList & nameFilters,
bool addAllFilesOption =
true);
84 QString currentNameFilter()
const;
86 void setRootDir(
const QString & dir,
bool canGoOutRoot =
false);
87 QString rootDir()
const;
89 QString currentFolderUrl()
const;
90 QString currentObjectUrl()
const;
92 bool currentObjectExists()
const;
97 void currentStoragetIndexChanged(
int index);
98 void currentFiltertIndexChanged(
int index);
99 void currentItemChanged ( QTreeWidgetItem * current, QTreeWidgetItem * previous );
100 void itemDoubleClicked ( QTreeWidgetItem * current,
int);
101 void itemActivated ( QTreeWidgetItem * item,
int column );
104 void showEvent ( QShowEvent * event );
105 void filenameEdited(
const QString & filename);
106 void filenameCursorPositionChanged(
int oldPos,
int newPos);
110 QPixmap formPreviewPixmap(
const QTreeWidgetItem *item);
112 Ui::StdStorageDialog *ui;
114 QPointer<StorageInterface> m_storage;
115 QPointer<ReportInterface> m_report;
120 QString m_currentPath;
121 QString m_proposedFileName;
122 QStringList m_urlBackward;
125 FormPixmapCache m_formPixmapCache;
126 bool m_useAllFilesFilter;
127 QString m_extensionAutocomplete;
128 bool m_currentFileNameIsManuallyEntered;
133 Q_DECLARE_OPERATORS_FOR_FLAGS(CuteReport::StdStorageDialog::ViewOptions)
135 #endif // STDSTORAGEDIALOG_H Definition: abstractpainterdelegate.h:42
Definition: reportpreview.h:30
TODO v2: rename to ReportObject.
Definition: reportinterface.h:71
QMap< const QTreeWidgetItem *, QPixmap > FormPixmapCache
Definition: stdstoragedialog.h:124
Definition: stdstoragedialog.h:52
ViewOption
Definition: stdstoragedialog.h:57
Definition: reportcore.h:83