#include <ap_Dialog_RDFEditor.h>
Public Member Functions | |
AP_Dialog_RDFEditor (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~AP_Dialog_RDFEditor () |
void | showAllRDF () |
Execute the given SPARQL query, using clear() and addStatement() to update the GUI. | |
void | setRestrictedModel (PD_RDFModelHandle model) |
std::string | uriToPrefixed (const std::string &uri) |
std::string | prefixedToURI (const std::string &prefixed) |
PD_RDFModelHandle | getModel () |
PD_DocumentRDFHandle | getRDF () |
void | createStatement () |
void | copyStatement () |
void | setRestrictedXMLID (const std::string &xmlid) |
virtual void | clear () |
methods for GUI subclasses to override. | |
virtual void | addStatement (const PD_RDFStatement &st) |
virtual void | setStatus (const std::string &msg) |
virtual void | removeStatement (const PD_RDFStatement &st) |
virtual std::list < PD_RDFStatement > | getSelection () |
virtual void | setSelection (const std::list< PD_RDFStatement > &l) |
virtual void | hideRestrictionXMLID (bool v) |
Protected Member Functions | |
virtual XAP_String_Id | getWindowTitleStringId () |
void | setSelection (const PD_RDFStatement &st) |
void | statusIsTripleCount () |
Protected Attributes | |
int | m_count |
PD_RDFModelHandle | m_restrictedModel |
bool | m_hideRestrictionXMLID |
AP_Dialog_RDFEditor::AP_Dialog_RDFEditor | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
AP_Dialog_RDFEditor::~AP_Dialog_RDFEditor | ( | void | ) | [virtual] |
void AP_Dialog_RDFEditor::addStatement | ( | const PD_RDFStatement & | st | ) | [virtual] |
Reimplemented in AP_UnixDialog_RDFEditor.
References m_count, and UT_UNUSED.
Referenced by copyStatement(), createStatement(), and showAllRDF().
void AP_Dialog_RDFEditor::clear | ( | void | ) | [virtual] |
methods for GUI subclasses to override.
Reimplemented in AP_UnixDialog_RDFEditor.
References m_count.
Referenced by showAllRDF().
void AP_Dialog_RDFEditor::copyStatement | ( | ) |
void AP_Dialog_RDFEditor::createStatement | ( | ) |
References addStatement(), getModel(), setSelection(), statusIsTripleCount(), and UT_DEBUGMSG.
Referenced by AP_UnixDialog_RDFEditor__onActionNew().
PD_RDFModelHandle AP_Dialog_RDFEditor::getModel | ( | ) |
References FV_View::getDocument(), PD_Document::getDocumentRDF(), AP_Dialog_Modeless::getView(), and m_restrictedModel.
Referenced by AP_UnixDialog_RDFEditor::addStatement(), copyStatement(), createStatement(), AP_UnixDialog_RDFEditor::getSelection(), AP_UnixDialog_RDFEditor::GIterToStatement(), AP_UnixDialog_RDFEditor::onCellEdited(), AP_UnixDialog_RDFEditor::onCursorChanged(), AP_UnixDialog_RDFEditor::onDelClicked(), AP_UnixDialog_RDFEditor::onExportRDFXML(), AP_UnixDialog_RDFEditor::onImportRDFXML(), prefixedToURI(), showAllRDF(), and uriToPrefixed().
PD_DocumentRDFHandle AP_Dialog_RDFEditor::getRDF | ( | ) |
std::list< PD_RDFStatement > AP_Dialog_RDFEditor::getSelection | ( | ) | [virtual] |
Reimplemented in AP_UnixDialog_RDFEditor.
Referenced by copyStatement().
XAP_String_Id AP_Dialog_RDFEditor::getWindowTitleStringId | ( | ) | [protected, virtual] |
Implements AP_Dialog_Modeless.
void AP_Dialog_RDFEditor::hideRestrictionXMLID | ( | bool | v | ) | [virtual] |
Reimplemented in AP_UnixDialog_RDFEditor.
References m_hideRestrictionXMLID.
Referenced by s_doRDFEditorDlg().
std::string AP_Dialog_RDFEditor::prefixedToURI | ( | const std::string & | prefixed | ) |
References getModel().
void AP_Dialog_RDFEditor::removeStatement | ( | const PD_RDFStatement & | st | ) | [virtual] |
Reimplemented in AP_UnixDialog_RDFEditor.
void AP_Dialog_RDFEditor::setRestrictedModel | ( | PD_RDFModelHandle | model | ) |
References m_restrictedModel, and showAllRDF().
Referenced by AP_UnixDialog_RDFEditor::hideRestrictionXMLID(), and setRestrictedXMLID().
void AP_Dialog_RDFEditor::setRestrictedXMLID | ( | const std::string & | xmlid | ) |
References getRDF(), s, setRestrictedModel(), and UT_DEBUGMSG.
Referenced by AP_UnixDialog_RDFEditor::_constructWindow(), and s_OnXMLIDChanged().
void AP_Dialog_RDFEditor::setSelection | ( | const std::list< PD_RDFStatement > & | l | ) | [virtual] |
Reimplemented in AP_UnixDialog_RDFEditor.
Referenced by copyStatement(), createStatement(), and setSelection().
void AP_Dialog_RDFEditor::setSelection | ( | const PD_RDFStatement & | st | ) | [protected] |
References setSelection().
void AP_Dialog_RDFEditor::setStatus | ( | const std::string & | msg | ) | [virtual] |
Reimplemented from AP_Dialog_Modeless.
Reimplemented in AP_UnixDialog_RDFEditor.
Referenced by statusIsTripleCount().
void AP_Dialog_RDFEditor::showAllRDF | ( | ) |
Execute the given SPARQL query, using clear() and addStatement() to update the GUI.
References addStatement(), clear(), getModel(), statusIsTripleCount(), PD_RDFStatement::toString(), and UT_DEBUGMSG.
Referenced by AP_UnixDialog_RDFEditor::onImportRDFXML(), AP_UnixDialog_RDFEditor::onShowAllClicked(), AP_UnixDialog_RDFEditor::runModeless(), and setRestrictedModel().
void AP_Dialog_RDFEditor::statusIsTripleCount | ( | ) | [protected] |
References XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), m_count, XAP_Dialog::m_pApp, setStatus(), and UT_std_string_sprintf().
Referenced by copyStatement(), createStatement(), AP_UnixDialog_RDFEditor::onDelClicked(), and showAllRDF().
std::string AP_Dialog_RDFEditor::uriToPrefixed | ( | const std::string & | uri | ) |
References getModel().
int AP_Dialog_RDFEditor::m_count [protected] |
Referenced by addStatement(), clear(), AP_UnixDialog_RDFEditor::onDelClicked(), and statusIsTripleCount().
bool AP_Dialog_RDFEditor::m_hideRestrictionXMLID [protected] |
Referenced by AP_UnixDialog_RDFEditor::_constructWindow(), and hideRestrictionXMLID().
Referenced by getModel(), and setRestrictedModel().