GnomeAppService Class Reference

#include <gapp_service.h>

Inheritance diagram for GnomeAppService:

AppBase AppBase MyGnomeTools MyGnomeTools MyGnomeTools MyGnomeTools App App PanView List of all members.

Public Member Functions

 GnomeAppService (GtkWidget *App=NULL)
virtual ~GnomeAppService ()
void GnomeAppServiceSetApp (GtkWidget *App)
GtkWidget * getApp ()
void check_events ()
void flash (const char *mld)
void warning (const char *mld)
void alert (const char *s1, const char *s2, const char *s3, int c)
void errormsg (const char *mld)
void message (const char *mld)
void messages (const char *s1, const char *s2, const char *s3)
int question (const gchar *question, int wait=FALSE)
int dialog (const char *title, const char *content, const char *b1, const char *b2, const char *b3, int wait=FALSE)
int choice (const char *s1, const char *s2, const char *s3, int numb, const char *b1, const char *b2, const char *b3, int def)
const char * input (const char *lab, const char *defs)
int check_file (gchar *fn)
gchar * file_dialog (const gchar *title, const gchar *path, const gchar *mask, const gchar *name, const gchar *historyid=NULL, GappBrowseFunc browsefkt=NULL, gpointer data=NULL)
void ValueRequest (const gchar *title, const gchar *label, const gchar *infotxt, UnitObj *u, double minv, double maxv, gchar *vfmt, double *value)
GtkWidget * progress_info_new (const gchar *title=NULL, gint levels=1)
int progress_info_set_bar_fraction (gdouble fraction=0., gint level=1)
int progress_info_set_bar_pulse (gint level=1, gdouble fraction=-1.)
int progress_info_set_bar_text (const gchar *text=NULL, gint level=1)
int progress_info_add_info (const gchar *info)
void progress_info_close ()
 GnomeAppService (GtkWidget *App=NULL)
virtual ~GnomeAppService ()
void GnomeAppServiceSetApp (GtkWidget *App)
GtkWidget * getApp ()
void check_events ()
void flash (const char *mld)
void warning (const char *mld)
void alert (const char *s1, const char *s2, const char *s3, int c)
void errormsg (const char *mld)
void message (const char *mld)
void messages (const char *s1, const char *s2, const char *s3)
int question (const gchar *question, int wait=FALSE)
int dialog (const char *title, const char *content, const char *b1, const char *b2, const char *b3, int wait=FALSE)
int choice (const char *s1, const char *s2, const char *s3, int numb, const char *b1, const char *b2, const char *b3, int def)
const char * input (const char *lab, const char *defs)
int check_file (gchar *fn)
gchar * file_dialog (const gchar *title, const gchar *path, const gchar *mask, const gchar *name, const gchar *historyid=NULL, GappBrowseFunc browsefkt=NULL, gpointer data=NULL)
void ValueRequest (const gchar *title, const gchar *label, const gchar *infotxt, UnitObj *u, double minv, double maxv, gchar *vfmt, double *value)
GtkWidget * progress_info_new (const gchar *title=NULL, gint levels=1)
int progress_info_set_bar_fraction (gdouble fraction=0., gint level=1)
int progress_info_set_bar_pulse (gint level=1, gdouble fraction=-1.)
int progress_info_set_bar_text (const gchar *text=NULL, gint level=1)
int progress_info_add_info (const gchar *info)
void progress_info_close ()

Static Public Member Functions

static void questioncallback (int reply, GnomeAppService *p)
static void file_ok_sel (GtkFileSelection *gw, GnomeAppService *p)
static void string_cb (gchar *string, gpointer data)
static void destroy (GtkWidget *widget, GnomeAppService *p)
static void questioncallback (int reply, GnomeAppService *p)
static void file_ok_sel (GtkFileSelection *gw, GnomeAppService *p)
static void string_cb (gchar *string, gpointer data)
static void destroy (GtkWidget *widget, GnomeAppService *p)

Public Attributes

GtkWidget * progress_dialog
GtkWidget * progress_bar [3]
GtkWidget * filew
int fdlg
gchar * fname
int qreply
int dlgreply
int lastbutton
GtkWidget * progress_dialog
GtkWidget * progress_bar [3]
GtkWidget * filew
gchar * fname

Private Attributes

GtkWidget * app
GtkWidget * app

Detailed Description

Definition at line 182 of file gapp_service.h.


Constructor & Destructor Documentation

GnomeAppService::GnomeAppService GtkWidget *  App = NULL  )  [inline]
 

Definition at line 186 of file gapp_service.h.

References app, fname, and progress_dialog.

virtual GnomeAppService::~GnomeAppService  )  [inline, virtual]
 

Definition at line 187 of file gapp_service.h.

References choice(), fname, and progress_info_close().

GnomeAppService::GnomeAppService GtkWidget *  App = NULL  )  [inline]
 

Definition at line 186 of file gapp_service.h.

References app, fname, and progress_dialog.

virtual GnomeAppService::~GnomeAppService  )  [inline, virtual]
 

Definition at line 187 of file gapp_service.h.

References choice(), fname, and progress_info_close().


Member Function Documentation

void GnomeAppService::alert const char *  s1,
const char *  s2,
const char *  s3,
int  c
[inline]
 

Definition at line 214 of file gapp_service.h.

References app, and dialog().

void GnomeAppService::alert const char *  s1,
const char *  s2,
const char *  s3,
int  c
[inline]
 

Definition at line 214 of file gapp_service.h.

References app, and dialog().

Referenced by innovative_dsp_hwi_dev::GetParameter(), and sranger_hwi_dev::sranger_hwi_dev().

void GnomeAppService::check_events  )  [inline]
 

Definition at line 197 of file gapp_service.h.

void GnomeAppService::check_events  )  [inline]
 

Definition at line 197 of file gapp_service.h.

Referenced by SPM_ScanControl::do_hscapture(), rhk_ScanControl::do_hscapture(), SPM_ScanControl::do_scan(), innovative_dsp_hwi_dev::Evchk(), innovative_dsp_hwi_dev::ExecCmd(), Surface::load(), SPM_ScanControl::prepare_to_start_scan(), rhk_ScanControl::prepare_to_start_scan(), progress_info_add_info(), progress_info_set_bar_fraction(), progress_info_set_bar_pulse(), progress_info_set_bar_text(), question(), LAN_rhk_hwi_dev::ReadData(), gxsm_TC211_CCD::ScanLineM(), sranger_hwi_spm::ScanLineM(), gxsm_v4l::ScanLineM(), App::SetStatus(), RemoteControl::waitfkt(), and App::~App().

int GnomeAppService::check_file gchar *  fn  ) 
 

int GnomeAppService::check_file gchar *  fn  ) 
 

Definition at line 548 of file gapp_service.C.

References choice(), FALSE, L_CANCEL, L_OVERWRITE, L_RETRY, TRUE, WRN_FILEEXISTS, and WRN_WARNING.

Referenced by ProfileControl::file_save_as_callback(), and ProfileControl::file_save_callback().

int GnomeAppService::choice const char *  s1,
const char *  s2,
const char *  s3,
int  numb,
const char *  b1,
const char *  b2,
const char *  b3,
int  def
 

int GnomeAppService::choice const char *  s1,
const char *  s2,
const char *  s3,
int  numb,
const char *  b1,
const char *  b2,
const char *  b3,
int  def
 

Definition at line 272 of file gapp_service.C.

References dialog(), and TRUE.

Referenced by check_file(), and ~GnomeAppService().

static void GnomeAppService::destroy GtkWidget *  widget,
GnomeAppService p
[static]
 

void GnomeAppService::destroy GtkWidget *  widget,
GnomeAppService p
[static]
 

Definition at line 542 of file gapp_service.C.

References fdlg, and fname.

int GnomeAppService::dialog const char *  title,
const char *  content,
const char *  b1,
const char *  b2,
const char *  b3,
int  wait = FALSE
 

int GnomeAppService::dialog const char *  title,
const char *  content,
const char *  b1,
const char *  b2,
const char *  b3,
int  wait = FALSE
 

Definition at line 280 of file gapp_service.C.

References _, GNOME_PAD, and TRUE.

Referenced by alert(), choice(), errormsg(), file_dialog(), message(), App::reload_gxsm_plugins(), ValueRequest(), and warning().

void GnomeAppService::errormsg const char *  mld  )  [inline]
 

Definition at line 225 of file gapp_service.h.

References app, and dialog().

void GnomeAppService::errormsg const char *  mld  )  [inline]
 

Definition at line 225 of file gapp_service.h.

References app, and dialog().

gchar* GnomeAppService::file_dialog const gchar *  title,
const gchar *  path,
const gchar *  mask,
const gchar *  name,
const gchar *  historyid = NULL,
GappBrowseFunc  browsefkt = NULL,
gpointer  data = NULL
 

gchar * GnomeAppService::file_dialog const gchar *  title,
const gchar *  path,
const gchar *  mask,
const gchar *  name,
const gchar *  historyid = NULL,
GappBrowseFunc  browsefkt = NULL,
gpointer  data = NULL
 

Definition at line 397 of file gapp_service.C.

References DBG_L2, dialog(), FALSE, file_ok(), fname, XsmRescourceManager::GetStr(), GNOME_PAD, XsmRescourceManager::Put(), TRUE, and XSM_DEBUG.

Referenced by ascii_data_im_export_export_callback(), ascii_data_im_export_import_callback(), editnc_run(), App::file_browse_callback(), ProfileControl::file_open_callback(), ProfileControl::file_save_as_callback(), ProfileControl::file_save_callback(), g_dat_im_export_export_callback(), g_dat_im_export_import_callback(), gmeyer_im_export_export_callback(), gmeyer_im_export_import_callback(), Surface::load(), nanoimport_run(), omicron_io_import_callback(), png_im_export_export_callback(), png_im_export_import_callback(), primitive_im_export_export_callback(), primitive_im_export_import_callback(), PsiHDF_im_export_export_callback(), PsiHDF_im_export_import_callback(), rhk200_im_export_import_callback(), rhk_spm32_import_export_callback(), rhk_spm32_import_import_callback(), sdfimport_run(), spa4_im_export_export_callback(), spa4_im_export_import_callback(), UK2k_import_import_callback(), ViewControl::view_file_loadobjects_callback(), ViewControl::view_file_saveimage_callback(), ViewControl::view_file_saveobjects_callback(), plugin_ctrl::view_pi_info(), WSxM_ImExportFile::Write(), spa4_ImExportFile::Write(), PsiHDF_ImExportFile::Write(), PrimitiveImExportFile::Write(), gmeyer_ImExportFile::Write(), ascii_ImExportFile::Write(), WSxM_im_export_export_callback(), and WSxM_im_export_import_callback().

static void GnomeAppService::file_ok_sel GtkFileSelection *  gw,
GnomeAppService p
[static]
 

static void GnomeAppService::file_ok_sel GtkFileSelection *  gw,
GnomeAppService p
[static]
 

void GnomeAppService::flash const char *  mld  )  [inline]
 

Definition at line 200 of file gapp_service.h.

void GnomeAppService::flash const char *  mld  )  [inline]
 

Definition at line 200 of file gapp_service.h.

GtkWidget* GnomeAppService::getApp  )  [inline]
 

Definition at line 195 of file gapp_service.h.

References app.

GtkWidget* GnomeAppService::getApp  )  [inline]
 

Definition at line 195 of file gapp_service.h.

References app.

Referenced by ascii_data_im_export_cleanup(), ascii_data_im_export_query(), CCDControl_cleanup(), CCDControl_query(), converter_cleanup(), converter_query(), DriftComp_cleanup(), DriftComp_query(), DSPControl_cleanup(), DSPControl_query(), DSPMover_cleanup(), DSPMover_query(), DSPPeakFind_cleanup(), DSPPeakFind_query(), DSPProbe_cleanup(), DSPProbe_query(), external_converter_cleanup(), external_converter_query(), g_dat_im_export_cleanup(), g_dat_im_export_query(), gmeyer_im_export_cleanup(), gmeyer_im_export_query(), gxsm_plugins::gxsm_plugins(), islandlbl_cleanup(), islandlbl_query(), nano_manipulator_cleanup(), nano_manipulator_query(), NanoPlott_cleanup(), NanoPlott_query(), omicron_io_cleanup(), omicron_io_query(), PanView_run(), png_im_export_cleanup(), png_im_export_query(), primitive_im_export_cleanup(), primitive_im_export_query(), PsiHDF_im_export_cleanup(), PsiHDF_im_export_query(), rhk200_im_export_cleanup(), rhk200_im_export_query(), rhk_scancontrol_cleanup(), rhk_scancontrol_query(), rhk_spm32_import_cleanup(), rhk_spm32_import_query(), spa4_im_export_cleanup(), spa4_im_export_query(), SpaLeedControl_cleanup(), SpaLeedControl_query(), spm_scancontrol_cleanup(), spm_scancontrol_query(), sranger_hwi_cleanup(), sranger_hwi_query(), UK2k_import_cleanup(), UK2k_import_query(), WSxM_im_export_cleanup(), and WSxM_im_export_query().

void GnomeAppService::GnomeAppServiceSetApp GtkWidget *  App  )  [inline]
 

Definition at line 193 of file gapp_service.h.

References app.

void GnomeAppService::GnomeAppServiceSetApp GtkWidget *  App  )  [inline]
 

Definition at line 193 of file gapp_service.h.

References app.

Referenced by App::build_gxsm().

const char* GnomeAppService::input const char *  lab,
const char *  defs
[inline]
 

Definition at line 263 of file gapp_service.h.

const char* GnomeAppService::input const char *  lab,
const char *  defs
[inline]
 

Definition at line 263 of file gapp_service.h.

Referenced by App::create_as_control(), App::create_spa_control(), App::create_spm_control(), App::create_ui_control(), and ValueRequest().

void GnomeAppService::message const char *  mld  )  [inline]
 

Definition at line 236 of file gapp_service.h.

References app, and dialog().

void GnomeAppService::message const char *  mld  )  [inline]
 

Definition at line 236 of file gapp_service.h.

References app, and dialog().

Referenced by add_scan_configure(), affine_configure(), affine_run(), ascii_data_im_export_configure(), average_profile_configure(), baseinfo_configure(), bg_z_drift_configure(), bggamma_configure(), comedi_hwi_configure(), converter_configure(), curvature_configure(), diff_configure(), div_scan_configure(), external_converter_configure(), App::file_print_callback(), findlocmax_configure(), findlocmax_run(), flip_diagonal_configure(), g_dat_im_export_configure(), gmeyer_im_export_configure(), grab_v4l_configure(), App::help_about_callback(), App::help_license_callback(), histogram_configure(), histohop_configure(), histohop_run(), innovative_dsp_hwi_configure(), invert_z_configure(), koehler_configure(), LAN_rhk_hwi_configure(), layersmooth_configure(), linear_stat_diff_configure(), listplugins_run(), local_height_configure(), log_z_configure(), make_test_configure(), max_configure(), merge_h_configure(), merge_v_configure(), messages(), mirror_x_configure(), mirror_y_configure(), mkicons_configure(), mul_scan_configure(), nanoimport_configure(), OctoCorr_configure(), omicron_io_configure(), PanView_configure(), parabolregress_configure(), pass_cc_configure(), plane3pkt_configure(), plane3pkt_run(), plane_max_prop_configure(), png_im_export_configure(), primitive_im_export_configure(), printer_configure(), psdadd_configure(), PsiHDF_im_export_configure(), pyremote_configure(), quenchscan_configure(), queryDSPinfo_run(), DSPControl::read_dsp_vector(), repair_cs_configure(), rhk200_im_export_configure(), rhk_scancontrol_configure(), rhk_spm32_import_configure(), rotate90_configure(), scalescan_configure(), sdfimport_configure(), shape_configure(), shear_x_configure(), shear_y_configure(), shiftarea_configure(), short_to_short_configure(), smooth_configure(), spa4_im_export_configure(), spectrocut_configure(), spm_scancontrol_configure(), sranger_hwi_configure(), stat_diff_configure(), stepcount_configure(), stop_ccr_configure(), sub_scan_configure(), tc211_ccd_configure(), Tderive_configure(), to_byte_configure(), to_complex_configure(), to_double_configure(), to_float_configure(), to_long_configure(), to_short_configure(), App::tools_mkicons_callback(), App::tools_plugin_info_callback(), UK2k_import_configure(), uto_float_configure(), vorlage_configure(), waterlevel_configure(), DSPControl::write_dsp_vector(), WSxM_im_export_configure(), and Z_limiter_configure().

void GnomeAppService::messages const char *  s1,
const char *  s2,
const char *  s3
[inline]
 

Definition at line 247 of file gapp_service.h.

References message().

void GnomeAppService::messages const char *  s1,
const char *  s2,
const char *  s3
[inline]
 

Definition at line 247 of file gapp_service.h.

References message().

int GnomeAppService::progress_info_add_info const gchar *  info  ) 
 

int GnomeAppService::progress_info_add_info const gchar *  info  ) 
 

Definition at line 364 of file gapp_service.C.

References _, check_events(), GNOME_PAD, progress_dialog, and TRUE.

void GnomeAppService::progress_info_close  ) 
 

void GnomeAppService::progress_info_close  ) 
 

Definition at line 375 of file gapp_service.C.

References progress_dialog.

Referenced by ~GnomeAppService().

GtkWidget* GnomeAppService::progress_info_new const gchar *  title = NULL,
gint  levels = 1
 

GtkWidget * GnomeAppService::progress_info_new const gchar *  title = NULL,
gint  levels = 1
 

Definition at line 306 of file gapp_service.C.

References _, GNOME_PAD, progress_bar, progress_dialog, and TRUE.

Referenced by NetCDF::Read(), and NetCDF::Write().

int GnomeAppService::progress_info_set_bar_fraction gdouble  fraction = 0.,
gint  level = 1
 

int GnomeAppService::progress_info_set_bar_fraction gdouble  fraction = 0.,
gint  level = 1
 

Definition at line 328 of file gapp_service.C.

References check_events(), progress_bar, and progress_dialog.

Referenced by Mem2d::LoadScanEvents(), NetCDF::Read(), and NetCDF::Write().

int GnomeAppService::progress_info_set_bar_pulse gint  level = 1,
gdouble  fraction = -1.
 

int GnomeAppService::progress_info_set_bar_pulse gint  level = 1,
gdouble  fraction = -1.
 

Definition at line 339 of file gapp_service.C.

References check_events(), progress_bar, and progress_dialog.

Referenced by Mem2d::WriteScanEvents().

int GnomeAppService::progress_info_set_bar_text const gchar *  text = NULL,
gint  level = 1
 

int GnomeAppService::progress_info_set_bar_text const gchar *  text = NULL,
gint  level = 1
 

Definition at line 353 of file gapp_service.C.

References check_events(), progress_bar, and progress_dialog.

Referenced by NetCDF::Read(), and NetCDF::Write().

int GnomeAppService::question const gchar *  question,
int  wait = FALSE
 

int GnomeAppService::question const gchar *  question,
int  wait = FALSE
 

Definition at line 258 of file gapp_service.C.

References app, check_events(), qreply, and questioncallback().

Referenced by App::file_exit_callback().

static void GnomeAppService::questioncallback int  reply,
GnomeAppService p
[static]
 

void GnomeAppService::questioncallback int  reply,
GnomeAppService p
[static]
 

Definition at line 250 of file gapp_service.C.

References FALSE, qreply, and TRUE.

Referenced by question().

static void GnomeAppService::string_cb gchar *  string,
gpointer  data
[static]
 

void GnomeAppService::string_cb gchar *  string,
gpointer  data
[static]
 

Definition at line 539 of file gapp_service.C.

void GnomeAppService::ValueRequest const gchar *  title,
const gchar *  label,
const gchar *  infotxt,
UnitObj u,
double  minv,
double  maxv,
gchar *  vfmt,
double *  value
 

void GnomeAppService::ValueRequest const gchar *  title,
const gchar *  label,
const gchar *  infotxt,
UnitObj u,
double  minv,
double  maxv,
gchar *  vfmt,
double *  value
 

Definition at line 566 of file gapp_service.C.

References _, DBG_L2, dialog(), FALSE, GNOME_PAD, info, input(), MyGnomeTools::mygtk_create_input(), TRUE, and XSM_DEBUG.

Referenced by bggamma_run(), crosscorrelation_configure(), crosscorrelation_run(), curvature_run(), diff_run(), histogram_run(), layersmooth_run(), local_height_run(), PrimitiveImExportFile::matsRead(), OctoCorr_run(), probe_image_extract_configuration(), rotate_configuration(), rotate_run(), scalescan_run(), shear_x_run(), shear_y_run(), SlopeAbs_configure(), SlopeAbs_run(), SlopeDir_configure(), SlopeDir_run(), smooth_run(), spasim_configure(), spasim_run(), stat_diff_run(), Tderive_run(), and waterlevel_run().

void GnomeAppService::warning const char *  mld  )  [inline]
 

Definition at line 203 of file gapp_service.h.

References app, and dialog().

void GnomeAppService::warning const char *  mld  )  [inline]
 

Definition at line 203 of file gapp_service.h.

References app, and dialog().


Member Data Documentation

GtkWidget* GnomeAppService::app [private]
 

Reimplemented in App, and App.

Definition at line 184 of file gapp_service.h.

GtkWidget* GnomeAppService::app [private]
 

Reimplemented in App, and App.

Definition at line 184 of file gapp_service.h.

Referenced by alert(), errormsg(), getApp(), GnomeAppService(), GnomeAppServiceSetApp(), message(), question(), and warning().

int GnomeAppService::dlgreply
 

Definition at line 307 of file gapp_service.h.

int GnomeAppService::fdlg
 

Definition at line 304 of file gapp_service.h.

Referenced by destroy().

GtkWidget* GnomeAppService::filew
 

Definition at line 303 of file gapp_service.h.

GtkWidget* GnomeAppService::filew
 

Definition at line 303 of file gapp_service.h.

gchar* GnomeAppService::fname
 

Definition at line 305 of file gapp_service.h.

gchar* GnomeAppService::fname
 

Definition at line 305 of file gapp_service.h.

Referenced by destroy(), file_dialog(), GnomeAppService(), and ~GnomeAppService().

int GnomeAppService::lastbutton
 

Definition at line 307 of file gapp_service.h.

GtkWidget* GnomeAppService::progress_bar[3]
 

Definition at line 301 of file gapp_service.h.

GtkWidget* GnomeAppService::progress_bar[3]
 

Definition at line 301 of file gapp_service.h.

Referenced by App::GxsmSplash(), progress_info_new(), progress_info_set_bar_fraction(), progress_info_set_bar_pulse(), and progress_info_set_bar_text().

GtkWidget* GnomeAppService::progress_dialog
 

Definition at line 300 of file gapp_service.h.

GtkWidget* GnomeAppService::progress_dialog
 

Definition at line 300 of file gapp_service.h.

Referenced by GnomeAppService(), progress_info_add_info(), progress_info_close(), progress_info_new(), progress_info_set_bar_fraction(), progress_info_set_bar_pulse(), and progress_info_set_bar_text().

int GnomeAppService::qreply
 

Definition at line 306 of file gapp_service.h.

Referenced by question(), and questioncallback().


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 09:05:24 2006 for GXSM by  doxygen 1.4.6