KNewMenu Class Reference
The 'New' submenu, both for the File menu and the RMB popup menu. More...
#include <knewmenu.h>
Public Slots | |
void | slotCheckUpToDate () |
Public Member Functions | |
KNewMenu (KActionCollection *_collec, const char *name=0L) | |
KNewMenu (KActionCollection *_collec, QWidget *parentWidget, const char *name=0L) | |
void | setPopupFiles (KURL::List &_files) |
void | setPopupFiles (const KURL &_file) |
Protected Slots | |
void | slotNewDir () |
void | slotNewFile () |
void | slotFillTemplates () |
void | slotResult (KIO::Job *) |
void | slotRenamed (KIO::Job *, const KURL &, const KURL &) |
Detailed Description
The 'New' submenu, both for the File menu and the RMB popup menu.(The same instance can be used by both). Fills it with 'Folder' and one item per Template. For this you need to connect aboutToShow() of the File menu with slotCheckUpToDate() and to call slotCheckUpToDate() before showing the RMB popupmenu.
KNewMenu automatically updates the list of templates if templates are added/updated/deleted.
- Author:
- David Faure <faure@kde.org> Ideas and code for the new template handling mechanism ('link' desktop files) from Christoph Pickart <pickart@iam.uni-bonn.de>
Definition at line 51 of file knewmenu.h.
Constructor & Destructor Documentation
|
Constructor.
Definition at line 66 of file knewmenu.cc. |
Member Function Documentation
|
Set the files the popup is shown for Call this before showing up the menu.
Definition at line 67 of file knewmenu.h. |
|
Checks if updating the list is necessary IMPORTANT : Call this in the slot for aboutToShow.
Definition at line 100 of file knewmenu.cc. References slotFillTemplates(). |
|
Called when New->Directory... is clicked Definition at line 340 of file knewmenu.cc. References KonqOperations::newDir(). |
|
Called when New->* is clicked.
Definition at line 350 of file knewmenu.cc. |
|
Fills the templates list.
Definition at line 284 of file knewmenu.cc. Referenced by slotCheckUpToDate(). |
The documentation for this class was generated from the following files: