#include "GTKCommon.h"
#include "ap_RDFSemanticItemGTKInjected.h"
#include "pd_Document.h"
#include "fv_View.h"
#include "xap_UnixDialogHelper.h"
#include "ap_Strings.h"
#include "xap_Frame.h"
#include "xap_UnixFrameImpl.h"
#include "xap_GtkComboBoxHelpers.h"
Classes | |
struct | ssList_t |
struct | combo_box_t |
class | PD_RDFDialogsGTK |
Enumerations | |
enum | { COLUMN_REFDLG_NAME = 0, NUM_REFDLG_COLUMNS } |
Functions | |
static const char * | getStylesheetName (const ssList_t *ssList, const gchar *translation) |
void | GDestroyNotify_GObjectSemItem (gpointer data) |
PD_RDFSemanticItemHandle | getHandle (GtkDialog *d) |
void | OnSemItemEdited (GtkDialog *d, gint, gpointer) |
void | GDestroyNotify_GObjectSemItem_List (gpointer data) |
PD_RDFSemanticItems | getSemItemListHandle (GtkDialog *d) |
void | OnSemItemListEdited (GtkDialog *d, gint response_id, gpointer) |
static void | OnSemanticStylesheetsDialogResponse (GtkWidget *dialog, GtkTreeView *, FV_View *) |
static void | ApplySemanticStylesheets (const std::string &semItemClassRestriction, const std::string &ssName, bool reflow) |
static gboolean | OnSemanticStylesheetsSet_cb (GtkWidget *widget, GdkEvent *event, combo_box_t *box) |
static gboolean | OnSemanticStylesheetsOk_cb (GtkWidget *widget, GdkEvent *event, combo_box_t *box) |
static void | OnInsertReferenceBase (GtkWidget *dialog, GtkTreeView *tree, FV_View *pView) |
static void | OnInsertReference (GtkDialog *d, gint, gpointer user_data) |
static void | OnInsertReferenceDblClicked (GtkTreeView *tree, GtkTreePath *, GtkTreeViewColumn *, gpointer user_data) |
Variables | |
static gchar * | s_id |
static const ssList_t | ssListContact [] |
static const ssList_t | ssListEvent [] |
static const ssList_t | ssListLocation [] |
static combo_box_t | combo_box_data [] |
static void ApplySemanticStylesheets | ( | const std::string & | semItemClassRestriction, | |
const std::string & | ssName, | |||
bool | reflow | |||
) | [static] |
References PD_Document::beginUserAtomicGlob(), PD_Document::endUserAtomicGlob(), PD_Document::getAllViews(), XAP_App::getApp(), PD_Document::getDocumentRDF(), XAP_App::getDocuments(), PD_Document::notifyPieceTableChangeEnd(), PD_Document::notifyPieceTableChangeStart(), PD_RDFSemanticItemViewSite::reflowUsingCurrentStylesheet(), PD_Document::setDontImmediatelyLayout(), PD_RDFSemanticItemViewSite::setStylesheetWithoutReflow(), PD_RDFSemanticStylesheet::stylesheetTypeSystem(), and UT_DEBUGMSG.
Referenced by OnSemanticStylesheetsOk_cb(), and OnSemanticStylesheetsSet_cb().
void GDestroyNotify_GObjectSemItem | ( | gpointer | data | ) |
void GDestroyNotify_GObjectSemItem_List | ( | gpointer | data | ) |
PD_RDFSemanticItemHandle getHandle | ( | GtkDialog * | d | ) |
References ap_GObjectSemItem::h.
Referenced by OnSemItemEdited().
PD_RDFSemanticItems getSemItemListHandle | ( | GtkDialog * | d | ) |
References ap_GObjectSemItem_List::cl.
Referenced by OnSemItemListEdited().
static const char* getStylesheetName | ( | const ssList_t * | ssList, | |
const gchar * | translation | |||
) | [static] |
References XAP_App::getApp(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), ssList_t::stylesheet, text, and UT_DEBUGMSG.
Referenced by OnSemanticStylesheetsOk_cb(), and OnSemanticStylesheetsSet_cb().
static void OnInsertReference | ( | GtkDialog * | d, | |
gint | , | |||
gpointer | user_data | |||
) | [static] |
References G_OBJECT_TREEVIEW, OnInsertReferenceBase(), and UT_DEBUGMSG.
Referenced by PD_RDFDialogsGTK::runInsertReferenceDialog().
static void OnInsertReferenceBase | ( | GtkWidget * | dialog, | |
GtkTreeView * | tree, | |||
FV_View * | pView | |||
) | [static] |
References COLUMN_REFDLG_NAME, FV_View::getDocument(), PD_Document::getDocumentRDF(), getSelectedText(), and UT_DEBUGMSG.
Referenced by OnInsertReference(), and OnInsertReferenceDblClicked().
static void OnInsertReferenceDblClicked | ( | GtkTreeView * | tree, | |
GtkTreePath * | , | |||
GtkTreeViewColumn * | , | |||
gpointer | user_data | |||
) | [static] |
References d, G_OBJECT_WINDOW, and OnInsertReferenceBase().
Referenced by PD_RDFDialogsGTK::runInsertReferenceDialog().
static void OnSemanticStylesheetsDialogResponse | ( | GtkWidget * | dialog, | |
GtkTreeView * | , | |||
FV_View * | ||||
) | [static] |
Referenced by PD_RDFDialogsGTK::runSemanticStylesheetsDialog().
static gboolean OnSemanticStylesheetsOk_cb | ( | GtkWidget * | widget, | |
GdkEvent * | event, | |||
combo_box_t * | box | |||
) | [static] |
static gboolean OnSemanticStylesheetsSet_cb | ( | GtkWidget * | widget, | |
GdkEvent * | event, | |||
combo_box_t * | box | |||
) | [static] |
void OnSemItemEdited | ( | GtkDialog * | d, | |
gint | , | |||
gpointer | ||||
) |
References getHandle(), and UT_DEBUGMSG.
Referenced by AP_RDFSemanticItemGTKInjected< AP_RDFContact >::showEditorWindow().
void OnSemItemListEdited | ( | GtkDialog * | d, | |
gint | response_id, | |||
gpointer | ||||
) |
References getSemItemListHandle(), and UT_DEBUGMSG.
Referenced by AP_RDFSemanticItemGTKInjected< AP_RDFContact >::showEditorWindow().
combo_box_t combo_box_data[] [static] |
{ {"Contact", RDF_SEMANTIC_STYLESHEET_CONTACT_NAME, ssListContact, NULL, 0}, {"Event", RDF_SEMANTIC_STYLESHEET_EVENT_NAME, ssListEvent, NULL, 0}, {"Location", RDF_SEMANTIC_STYLESHEET_LOCATION_NAME, ssListLocation, NULL, 0}, {NULL, NULL, NULL, NULL, 0} }
gchar* s_id [static] |
Referenced by PD_RDFDialogsGTK::~PD_RDFDialogsGTK().
const ssList_t ssListContact[] [static] |
{ {AP_STRING_ID_MENU_LABEL_RDF_SEMITEM_STYLESHEET_CONTACT_NAME, RDF_SEMANTIC_STYLESHEET_CONTACT_NAME}, {AP_STRING_ID_MENU_LABEL_RDF_SEMITEM_STYLESHEET_CONTACT_NICK, RDF_SEMANTIC_STYLESHEET_CONTACT_NICK}, {AP_STRING_ID_MENU_LABEL_RDF_SEMITEM_STYLESHEET_CONTACT_NAME_PHONE, RDF_SEMANTIC_STYLESHEET_CONTACT_NAME_PHONE}, {AP_STRING_ID_MENU_LABEL_RDF_SEMITEM_STYLESHEET_CONTACT_NICK_PHONE, RDF_SEMANTIC_STYLESHEET_CONTACT_NICK_PHONE}, {AP_STRING_ID_MENU_LABEL_RDF_SEMITEM_STYLESHEET_CONTACT_NAME_HOMEPAGE_PHONE, RDF_SEMANTIC_STYLESHEET_CONTACT_NAME_HOMEPAGE_PHONE}, {0, NULL} }
const ssList_t ssListEvent[] [static] |
{ {AP_STRING_ID_MENU_LABEL_RDF_SEMITEM_STYLESHEET_EVENT_NAME, RDF_SEMANTIC_STYLESHEET_EVENT_NAME}, {AP_STRING_ID_MENU_LABEL_RDF_SEMITEM_STYLESHEET_EVENT_SUMMARY, RDF_SEMANTIC_STYLESHEET_EVENT_SUMMARY}, {AP_STRING_ID_MENU_LABEL_RDF_SEMITEM_STYLESHEET_EVENT_SUMMARY_LOCATION, RDF_SEMANTIC_STYLESHEET_EVENT_SUMMARY_LOCATION}, {AP_STRING_ID_MENU_LABEL_RDF_SEMITEM_STYLESHEET_EVENT_SUMMARY_LOCATION_TIMES, RDF_SEMANTIC_STYLESHEET_EVENT_SUMMARY_LOCATION_TIMES}, {AP_STRING_ID_MENU_LABEL_RDF_SEMITEM_STYLESHEET_EVENT_SUMMARY_TIMES, RDF_SEMANTIC_STYLESHEET_EVENT_SUMMARY_TIMES}, {0, NULL} }
const ssList_t ssListLocation[] [static] |
{ {AP_STRING_ID_MENU_LABEL_RDF_SEMITEM_STYLESHEET_LOCATION_NAME, RDF_SEMANTIC_STYLESHEET_LOCATION_NAME}, {AP_STRING_ID_MENU_LABEL_RDF_SEMITEM_STYLESHEET_LOCATION_NAME_LATLONG, RDF_SEMANTIC_STYLESHEET_LOCATION_NAME_LATLONG}, {0, NULL} }