#include <knewmenu.h>
Inherits TDEActionMenu.
Public Slots | |
void | slotCheckUpToDate () |
Public Member Functions | |
KNewMenu (TDEActionCollection *_collec, const char *name=0L) | |
KNewMenu (TDEActionCollection *_collec, TQWidget *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 (TDEIO::Job *) |
void | slotRenamed (TDEIO::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.
Definition at line 52 of file knewmenu.h.
Constructor & Destructor Documentation
◆ KNewMenu() [1/2]
KNewMenu::KNewMenu | ( | TDEActionCollection * | _collec, |
const char * | name = 0L |
||
) |
Constructor.
Definition at line 66 of file knewmenu.cpp.
◆ KNewMenu() [2/2]
KNewMenu::KNewMenu | ( | TDEActionCollection * | _collec, |
TQWidget * | parentWidget, | ||
const char * | name = 0L |
||
) |
Definition at line 78 of file knewmenu.cpp.
◆ ~KNewMenu()
|
virtual |
Definition at line 88 of file knewmenu.cpp.
Member Function Documentation
◆ setPopupFiles() [1/2]
|
inline |
Definition at line 71 of file knewmenu.h.
◆ setPopupFiles() [2/2]
|
inline |
Set the files the popup is shown for Call this before showing up the menu.
Definition at line 68 of file knewmenu.h.
◆ slotCheckUpToDate
|
slot |
Checks if updating the list is necessary IMPORTANT : Call this in the slot for aboutToShow.
Definition at line 99 of file knewmenu.cpp.
◆ slotFillTemplates
|
protectedslot |
Fills the templates list.
Definition at line 292 of file knewmenu.cpp.
◆ slotNewDir
|
protectedslot |
Called when New->Directory... is clicked.
Definition at line 359 of file knewmenu.cpp.
◆ slotNewFile
|
protectedslot |
Called when New->* is clicked.
Definition at line 369 of file knewmenu.cpp.
◆ slotRenamed
|
protectedslot |
Definition at line 484 of file knewmenu.cpp.
◆ slotResult
|
protectedslot |
Definition at line 494 of file knewmenu.cpp.
The documentation for this class was generated from the following files: