Defines | Functions

ap_UnixDialog_Annotation.cpp File Reference

#include <stdlib.h>
#include <time.h>
#include "ut_string.h"
#include "ut_assert.h"
#include "ut_debugmsg.h"
#include "xap_UnixDialogHelper.h"
#include "xap_App.h"
#include "xap_UnixApp.h"
#include "xap_Frame.h"
#include "ap_Strings.h"
#include "ap_Dialog_Id.h"
#include "ap_UnixDialog_Annotation.h"

Defines

#define GRAB_ENTRY_TEXT(name)
#define SET_ENTRY_TXT(name)

Functions

static gboolean s_focus_out (GtkWidget *widget, GdkEvent *event, gpointer user_data)

Define Documentation

#define GRAB_ENTRY_TEXT (   name  ) 
Value:
txt = gtk_entry_get_text(GTK_ENTRY(m_entry##name)) ; \
if( txt ) \
set##name ( txt )

Referenced by AP_UnixDialog_Annotation::eventApply(), and AP_UnixDialog_Annotation::eventOK().

#define SET_ENTRY_TXT (   name  ) 
Value:
prop = get##name () ;                      \
    if ( !prop.empty() ) {                          \
        gtk_entry_set_text (GTK_ENTRY(m_entry##name), prop.c_str() ) ; \
    }

Function Documentation

static gboolean s_focus_out ( GtkWidget *  widget,
GdkEvent *  event,
gpointer  user_data 
) [static]