#include <PopupEditorWindow.h>
PopupEditorWidget::PopupEditorWidget |
( |
QWidget * |
par | ) |
|
References __tr2qs_ctx(), connect(), currentItemChanged(), exportAll(), exportSelected(), l, m_bOneTimeSetupDone, m_bSaving, m_pContextPopup, m_pEditor, m_pEmptyContextPopup, m_pLastEditedItem, m_pTreeWidget, and spl.
PopupEditorWidget::~PopupEditorWidget |
( |
| ) |
|
|
default |
void PopupEditorWidget::commit |
( |
void |
| ) |
|
References KviMemory::copy(), KviKvsPopupMenu::copyFrom(), KviPointerHashTableIterator< Key, T >::current(), KviPointerHashTableIterator< Key, T >::currentKey(), KviKvsPopupMenu::doClear(), g_pApp, KviKvsPopupManager::get(), i, KviKvsPopupManager::instance(), m_bOneTimeSetupDone, m_bSaving, MenuTreeWidgetItem::m_pPopup, m_pTreeWidget, p, KviKvsPopupMenu::popupName(), KviKvsPopupManager::remove(), KviPointerHashTable< Key, T >::remove(), saveLastEditedItem(), KviApplication::savePopups(), and KviPointerHashTable< Key, T >::setAutoDelete().
Referenced by PopupEditorWindow::applyClicked(), and PopupEditorWindow::okClicked().
void PopupEditorWidget::currentItemChanged |
( |
QTreeWidgetItem * |
it, |
|
|
QTreeWidgetItem * |
prev |
|
) |
| |
|
protectedslot |
void PopupEditorWidget::customContextMenuRequested |
( |
const QPoint & |
pnt | ) |
|
|
protectedslot |
References __tr2qs_ctx(), KviIconManager::Discard, exportCurrentPopup(), g_pIconManager, KviIconManager::getSmallIcon(), KVI_ASSERT, m_bOneTimeSetupDone, m_pContextPopup, m_pEmptyContextPopup, m_pTreeWidget, newPopup(), KviIconManager::Popup, removeCurrentPopup(), and KviIconManager::Save.
Referenced by oneTimeSetup().
void PopupEditorWidget::exportAll |
( |
| ) |
|
|
protectedslot |
void PopupEditorWidget::exportCurrentPopup |
( |
| ) |
|
|
protectedslot |
References __tr2qs_ctx(), KviFileDialog::askForSaveFileName(), KviKvsPopupMenu::generateDefPopup(), KVI_FILTER_SCRIPT, KVI_PATH_SEPARATOR, m_pLastEditedItem, MenuTreeWidgetItem::popup(), KviKvsPopupMenu::popupName(), saveLastEditedItem(), KviMessageBox::warning(), and KviFileUtils::writeFile().
Referenced by customContextMenuRequested().
void PopupEditorWidget::exportPopups |
( |
bool |
bSelectedOnly | ) |
|
References __tr2qs_ctx(), KviFileDialog::askForSaveFileName(), KviKvsPopupMenu::generateDefPopup(), i, KVI_FILTER_SCRIPT, KVI_PATH_SEPARATOR, m_pTreeWidget, MenuTreeWidgetItem::popup(), saveLastEditedItem(), KviMessageBox::warning(), and KviFileUtils::writeFile().
Referenced by exportAll(), and exportSelected().
void PopupEditorWidget::exportSelected |
( |
| ) |
|
|
protectedslot |
void PopupEditorWidget::getExportPopupBuffer |
( |
QString & |
buffer, |
|
|
MenuTreeWidgetItem * |
it |
|
) |
| |
|
protected |
void PopupEditorWidget::newPopup |
( |
| ) |
|
|
protectedslot |
void PopupEditorWidget::oneTimeSetup |
( |
| ) |
|
|
private |
References a, connect(), KviMemory::copy(), KviKvsPopupMenu::copyFrom(), KviPointerHashTableIterator< Key, T >::current(), currentItemChanged(), customContextMenuRequested(), KviKvsPopupManager::instance(), m_bOneTimeSetupDone, m_pTreeWidget, KviKvsPopupManager::popupDict(), KviKvsPopupMenu::popupName(), and popupRefresh().
Referenced by showEvent().
void PopupEditorWidget::popupRefresh |
( |
const QString & |
szName | ) |
|
|
protectedslot |
References __tr2qs_ctx(), KviKvsPopupMenu::copyFrom(), SinglePopupEditor::edit(), KviQString::equalCI(), KviControlCodes::Escape, KviPointerHashTable< Key, T >::find(), i, KviKvsPopupManager::instance(), m_bSaving, m_pEditor, m_pLastEditedItem, MenuTreeWidgetItem::m_pPopup, m_pTreeWidget, KviKvsPopupManager::popupDict(), KviKvsPopupMenu::popupName(), MenuTreeWidgetItem::replacePopup(), and KviMessageBox::warning().
Referenced by oneTimeSetup().
void PopupEditorWidget::removeCurrentPopup |
( |
| ) |
|
|
protectedslot |
void PopupEditorWidget::saveLastEditedItem |
( |
| ) |
|
|
private |
References KviQString::equalCI(), SinglePopupEditor::getMenu(), getUniquePopupName(), m, m_pEditor, m_pLastEditedItem, MenuTreeWidgetItem::m_pPopup, KviKvsPopupMenu::popupName(), MenuTreeWidgetItem::replacePopup(), and KviKvsPopupMenu::setPopupName().
Referenced by commit(), currentItemChanged(), exportCurrentPopup(), and exportPopups().
void PopupEditorWidget::showEvent |
( |
QShowEvent * |
e | ) |
|
|
protected |
bool PopupEditorWidget::m_bOneTimeSetupDone |
bool PopupEditorWidget::m_bSaving |
QMenu* PopupEditorWidget::m_pContextPopup |
QMenu* PopupEditorWidget::m_pEmptyContextPopup |
QTreeWidget* PopupEditorWidget::m_pTreeWidget |
The documentation for this class was generated from the following files: