23 #include <tqintdict.h>
24 #include <tqstringlist.h>
26 #include <tdeaction.h>
27 #include <kdialogbase.h>
29 #include <libkonq_export.h>
31 namespace TDEIO {
class Job; }
52 class LIBKONQ_EXPORT
KNewMenu :
public TDEActionMenu
60 KNewMenu( TDEActionCollection * _collec,
const char *name=0L );
61 KNewMenu( TDEActionCollection * _collec, TQWidget *parentWidget,
const char *name=0L );
71 void setPopupFiles(
const KURL & _file) {
73 popupFiles.append( _file );
81 void slotCheckUpToDate( );
97 void slotFillTemplates();
99 void slotResult( TDEIO::Job * );
101 void slotRenamed( TDEIO::Job *,
const KURL&,
const KURL& );
128 enum { LINKTOTEMPLATE = 1, TEMPLATE, SEPARATOR };
133 TQString templatePath;
144 static TQValueList<Entry> * s_templatesList;
146 class KNewMenuPrivate;
154 static int s_templatesVersion;
160 static bool s_filesParsed;
162 int menuItemsVersion;
168 KURL::List popupFiles;
173 bool m_isURLDesktopFile;
176 static KDirWatch * s_pDirWatch;
185 class KURLDesktopFileDlg :
public KDialogBase
189 KURLDesktopFileDlg(
const TQString& textFileName,
const TQString& textUrl );
190 KURLDesktopFileDlg(
const TQString& textFileName,
const TQString& textUrl, TQWidget *parent );
191 virtual ~KURLDesktopFileDlg() {}
196 TQString fileName()
const;
200 TQString url()
const;
204 void slotNameTextChanged(
const TQString& );
205 void slotURLTextChanged(
const TQString& );
207 void initDialog(
const TQString& textFileName,
const TQString& defaultName,
const TQString& textUrl,
const TQString& defaultUrl );
212 KLineEdit *m_leFileName;
216 KURLRequester *m_urlRequester;
221 bool m_fileNameEdited;