• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KFile

knewfilemenu.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 1998-2009 David Faure <faure@kde.org>
00003                  2003      Sven Leiber <s.leiber@web.de>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 or at your option version 3.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KNEWFILEMENU_H
00022 #define KNEWFILEMENU_H
00023 
00024 #include <kactionmenu.h>
00025 #include <kurl.h>
00026 #include <kfile_export.h>
00027 
00028 class KJob;
00029 
00030 class KActionCollection;
00031 class KNewFileMenuPrivate;
00032 
00054 class KFILE_EXPORT KNewFileMenu : public KActionMenu
00055 {
00056   Q_OBJECT
00057 public:
00066     KNewFileMenu(KActionCollection* collection, const QString& name, QObject* parent);
00067 
00074     virtual ~KNewFileMenu();
00075 
00079     bool isModal() const;
00080     
00084     KUrl::List popupFiles() const;
00085 
00090     void setModal(bool modality);
00091     
00096     void setParentWidget(QWidget* parentWidget);
00097     
00102     void setPopupFiles(const KUrl::List& files);
00103     
00109     void setSupportedMimeTypes(const QStringList& mime);
00110     
00114     void setViewShowsHiddenFiles(bool b);
00115     
00119     QStringList supportedMimeTypes() const;
00120 
00121 public Q_SLOTS:
00127     void checkUpToDate();
00128 
00137     void createDirectory();
00138 
00139 Q_SIGNALS:
00143     void fileCreated(const KUrl& url);
00144 
00148     void directoryCreated(const KUrl& url);
00149 
00150 protected Q_SLOTS:
00151 
00157     virtual void slotResult(KJob* job);
00158 
00159 
00160 private:
00161     Q_PRIVATE_SLOT(d, void _k_slotAbortDialog())
00162     Q_PRIVATE_SLOT(d, void _k_slotActionTriggered(QAction*))
00163     Q_PRIVATE_SLOT(d, void _k_slotCreateDirectory(bool writeHiddenDir = false))
00164     Q_PRIVATE_SLOT(d, void _k_slotCreateHiddenDirectory())
00165     Q_PRIVATE_SLOT(d, void _k_slotFillTemplates())
00166     Q_PRIVATE_SLOT(d, void _k_slotOtherDesktopFile())
00167     Q_PRIVATE_SLOT(d, void _k_slotRealFileOrDir())
00168     Q_PRIVATE_SLOT(d, void _k_slotTextChanged(const QString))
00169     Q_PRIVATE_SLOT(d, void _k_slotSymLink())
00170     Q_PRIVATE_SLOT(d, void _k_slotUrlDesktopFile())
00171     
00172     KNewFileMenuPrivate* const d;
00173     
00174 };
00175 
00176 #endif

KFile

Skip menu "KFile"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal