#include <PopupEditorWindow.h>
◆ PopupEditorWidget()
PopupEditorWidget::PopupEditorWidget |
( |
QWidget * | par | ) |
|
References __tr2qs_ctx, connect(), currentItemChanged(), exportAll(), exportSelected(), l, m_bOneTimeSetupDone, m_bSaving, m_pContextPopup, m_pEditor, m_pEmptyContextPopup, m_pLastEditedItem, and m_pTreeWidget.
◆ commit()
void PopupEditorWidget::commit |
( |
| ) |
|
References 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(), saveLastEditedItem(), and KviApplication::savePopups().
Referenced by PopupEditorWindow::applyClicked(), and PopupEditorWindow::okClicked().
◆ currentItemChanged
void PopupEditorWidget::currentItemChanged |
( |
QTreeWidgetItem * | it, |
|
|
QTreeWidgetItem * | prev ) |
|
protectedslot |
◆ customContextMenuRequested
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().
◆ exportAll
void PopupEditorWidget::exportAll |
( |
| ) |
|
|
protectedslot |
◆ exportCurrentPopup
void PopupEditorWidget::exportCurrentPopup |
( |
| ) |
|
|
protectedslot |
◆ exportPopups()
void PopupEditorWidget::exportPopups |
( |
bool | bSelectedOnly | ) |
|
References __tr2qs_ctx, KviFileDialog::askForSaveFileName(), KviKvsPopupMenu::generateDefPopup(), i, KVI_FILTER_SCRIPT, KVI_PATH_SEPARATOR, m_pTreeWidget, MenuTreeWidgetItem::popup(), saveLastEditedItem(), and KviFileUtils::writeFile().
Referenced by exportAll(), and exportSelected().
◆ exportSelected
void PopupEditorWidget::exportSelected |
( |
| ) |
|
|
protectedslot |
◆ getExportPopupBuffer()
void PopupEditorWidget::getExportPopupBuffer |
( |
QString & | buffer, |
|
|
MenuTreeWidgetItem * | it ) |
|
protected |
◆ getUniquePopupName()
◆ newPopup
void PopupEditorWidget::newPopup |
( |
| ) |
|
|
protectedslot |
◆ oneTimeSetup()
void PopupEditorWidget::oneTimeSetup |
( |
| ) |
|
|
private |
References a, connect(), KviPointerHashTableIterator< Key, T >::current(), currentItemChanged(), customContextMenuRequested(), KviKvsPopupManager::instance(), m_bOneTimeSetupDone, m_pTreeWidget, KviKvsPopupManager::popupDict(), KviKvsPopupMenu::popupName(), and popupRefresh().
Referenced by showEvent().
◆ popupRefresh
void PopupEditorWidget::popupRefresh |
( |
const QString & | szName | ) |
|
|
protectedslot |
References __tr2qs_ctx, KviKvsPopupMenu::copyFrom(), SinglePopupEditor::edit(), KviQString::equalCI(), KviPointerHashTable< Key, T >::find(), i, KviKvsPopupManager::instance(), m_bSaving, m_pEditor, m_pLastEditedItem, MenuTreeWidgetItem::m_pPopup, m_pTreeWidget, KviKvsPopupManager::popupDict(), KviKvsPopupMenu::popupName(), and MenuTreeWidgetItem::replacePopup().
Referenced by oneTimeSetup().
◆ removeCurrentPopup
void PopupEditorWidget::removeCurrentPopup |
( |
| ) |
|
|
protectedslot |
◆ saveLastEditedItem()
void PopupEditorWidget::saveLastEditedItem |
( |
| ) |
|
|
private |
References KviQString::equalCI(), SinglePopupEditor::getMenu(), getUniquePopupName(), m, m_pEditor, m_pLastEditedItem, MenuTreeWidgetItem::m_pPopup, KviKvsPopupMenu::popupName(), and MenuTreeWidgetItem::replacePopup().
Referenced by commit(), currentItemChanged(), exportCurrentPopup(), and exportPopups().
◆ showEvent()
void PopupEditorWidget::showEvent |
( |
QShowEvent * | e | ) |
|
|
overrideprotected |
◆ m_bOneTimeSetupDone
bool PopupEditorWidget::m_bOneTimeSetupDone |
◆ m_bSaving
bool PopupEditorWidget::m_bSaving |
◆ m_pContextPopup
QMenu* PopupEditorWidget::m_pContextPopup |
◆ m_pEditor
◆ m_pEmptyContextPopup
QMenu* PopupEditorWidget::m_pEmptyContextPopup |
◆ m_pLastEditedItem
◆ m_pTreeWidget
QTreeWidget* PopupEditorWidget::m_pTreeWidget |
The documentation for this class was generated from the following files: