#include <klflibview.h>
Public Slots | |
bool | apply () |
Public Member Functions | |
KLFLibResPropEditor (KLFLibResourceEngine *resource, QWidget *parent=0) | |
virtual | ~KLFLibResPropEditor () |
Protected Slots | |
void | slotResourcePropertyChanged (int propId) |
void | slotSubResourcePropertyChanged (const QString &subResource, int propId) |
void | on_btnAdvanced_toggled (bool on) |
void | advPropEdited (QStandardItem *item) |
void | advSubResPropEdited (QStandardItem *item) |
void | on_cbxSubResource_currentIndexChanged (int newSubResItemIndex) |
void | updateResourceProperties () |
void | updateSubResourceProperties () |
void | updateSubResources (const QString &curSubResource=QString()) |
Definition at line 993 of file klflibview.h.
KLFLibResPropEditor::KLFLibResPropEditor | ( | KLFLibResourceEngine * | resource, |
QWidget * | parent = 0 |
||
) |
Definition at line 4241 of file klflibview.cpp.
References advPropEdited(), advSubResPropEdited(), apply(), QPalette::color(), KLFLibResourceEngine::defaultSubResource(), KLFLibResourceEngine::FeatureSubResourceProps, KLFLibResourceEngine::FeatureSubResources, QPalette::setColor(), QStandardItemModel::setColumnCount(), QStandardItemModel::setHorizontalHeaderLabels(), slotResourcePropertyChanged(), slotSubResourcePropertyChanged(), KLFLibResourceEngine::supportedFeatureFlags(), updateResourceProperties(), updateSubResourceProperties(), and updateSubResources().
KLFLibResPropEditor::~KLFLibResPropEditor | ( | ) | [virtual] |
Definition at line 4298 of file klflibview.cpp.
void KLFLibResPropEditor::advPropEdited | ( | QStandardItem * | item | ) | [protected, slot] |
Definition at line 4476 of file klflibview.cpp.
References QMessageBox::critical(), QStandardItem::data(), klfDbg, KLFPropertizedObject::propertyNameForId(), propId, and KLFLibResourceEngine::setResourceProperty().
Referenced by KLFLibResPropEditor().
void KLFLibResPropEditor::advSubResPropEdited | ( | QStandardItem * | item | ) | [protected, slot] |
Definition at line 4534 of file klflibview.cpp.
References QMessageBox::critical(), QStandardItem::data(), klfDbg, propId, and KLFLibResourceEngine::setSubResourceProperty().
Referenced by KLFLibResPropEditor().
bool KLFLibResPropEditor::apply | ( | ) | [slot] |
Definition at line 4303 of file klflibview.cpp.
References QMessageBox::critical(), KLFLibResourceEngine::FeatureSubResources, klfDbg, KLFLibResourceEngine::locked(), KLFLibResourceEngine::setDefaultSubResource(), KLFLibResourceEngine::setLocked(), KLFLibResourceEngine::setSubResourceProperty(), KLFLibResourceEngine::setTitle(), KLFLibResourceEngine::subResourceProperty(), KLFLibResourceEngine::SubResPropLocked, KLFLibResourceEngine::SubResPropTitle, KLFLibResourceEngine::supportedFeatureFlags(), KLFLibResourceEngine::title(), QVariant::toBool(), and QVariant::toString().
Referenced by KLFLibResPropEditorDlg::applyAndClose(), and KLFLibResPropEditor().
void KLFLibResPropEditor::on_btnAdvanced_toggled | ( | bool | on | ) | [protected, slot] |
Definition at line 4398 of file klflibview.cpp.
References QWidget::adjustSize(), klfDbg, QWidget::parentWidget(), and QWidget::update().
void KLFLibResPropEditor::on_cbxSubResource_currentIndexChanged | ( | int | newSubResItemIndex | ) | [protected, slot] |
Definition at line 4547 of file klflibview.cpp.
References slotSubResourcePropertyChanged(), KLFLibResourceEngine::subResourceProperty(), KLFLibResourceEngine::SubResPropLocked, KLFLibResourceEngine::SubResPropTitle, QVariant::toBool(), and QVariant::toString().
void KLFLibResPropEditor::slotResourcePropertyChanged | ( | int | propId | ) | [protected, slot] |
Definition at line 4490 of file klflibview.cpp.
References updateResourceProperties(), and updateSubResources().
Referenced by KLFLibResPropEditor().
void KLFLibResPropEditor::slotSubResourcePropertyChanged | ( | const QString & | subResource, |
int | propId | ||
) | [protected, slot] |
Definition at line 4558 of file klflibview.cpp.
References updateSubResourceProperties(), and updateSubResources().
Referenced by KLFLibResPropEditor(), on_cbxSubResource_currentIndexChanged(), and updateSubResources().
void KLFLibResPropEditor::updateResourceProperties | ( | ) | [protected, slot] |
Definition at line 4496 of file klflibview.cpp.
References QStandardItemModel::appendRow(), QPalette::brush(), KLFLibResourceEngine::canModifyProp(), QString::chop(), QString::endsWith(), KLFLibResourceEngine::locked(), KLFPropertizedObject::propertyIdForName(), propId, KLFLibResourceEngine::PropLocked, KLFLibResourceEngine::PropTitle, KLFPropertizedObject::registeredPropertyNameList(), KLFLibResourceEngine::resourceProperty(), QStandardItem::setBackground(), QStandardItem::setData(), QStandardItem::setEditable(), QStandardItem::setForeground(), QStandardItemModel::setRowCount(), KLFLibResourceEngine::title(), QUrl::toString(), QVariant::toString(), and KLFLibResourceEngine::url().
Referenced by KLFLibResPropEditor(), and slotResourcePropertyChanged().
void KLFLibResPropEditor::updateSubResourceProperties | ( | ) | [protected, slot] |
Definition at line 4577 of file klflibview.cpp.
References QStandardItemModel::appendRow(), QPalette::brush(), KLFLibResourceEngine::canModifySubResourceProperty(), propId, QStandardItem::setBackground(), QStandardItem::setData(), QStandardItem::setEditable(), QStandardItem::setForeground(), QStandardItemModel::setRowCount(), QList::size(), KLFLibResourceEngine::subResourceProperty(), KLFLibResourceEngine::subResourcePropertyIdList(), KLFLibResourceEngine::subResourcePropertyName(), and QVariant::toString().
Referenced by KLFLibResPropEditor(), and slotSubResourcePropertyChanged().
void KLFLibResPropEditor::updateSubResources | ( | const QString & | curSubResource = QString() | ) | [protected, slot] |
Definition at line 4419 of file klflibview.cpp.
References QString::arg(), QString::isEmpty(), klfDbg, slotSubResourcePropertyChanged(), KLFLibResourceEngine::subResourceList(), KLFLibResourceEngine::subResourceProperty(), KLFLibResourceEngine::SubResPropLocked, KLFLibResourceEngine::SubResPropTitle, QVariant::toBool(), and QVariant::toString().
Referenced by KLFLibResPropEditor(), slotResourcePropertyChanged(), and slotSubResourcePropertyChanged().