ARB
|
#include "aw_at.hxx"
#include "aw_select.hxx"
#include "aw_awar.hxx"
#include "aw_window_Xm.hxx"
#include "aw_msg.hxx"
#include "aw_root.hxx"
#include "aw_xargs.hxx"
#include "aw_varupdate.hxx"
#include "aw_localdef.hxx"
#include <arb_algo.h>
#include <ad_cb.h>
#include <Xm/Frame.h>
#include <Xm/ToggleB.h>
#include <Xm/Label.h>
#include <Xm/List.h>
#include <Xm/PushB.h>
#include <Xm/Text.h>
#include <Xm/TextF.h>
#include <Xm/ScrolledW.h>
#include <Xm/Scale.h>
Go to the source code of this file.
Classes | |
struct | TrackedAwarChange |
struct | aw_toggle_data |
Macros | |
#define | SCALER_MIN_VALUE 0 |
#define | SCALER_MAX_VALUE 1000 |
#define | MIN_RIGHT_OFFSET 10 |
#define | MIN_BOTTOM_OFFSET 10 |
#define | MAX_LINE_LENGTH 200 |
#define | SPACE_BEHIND_LABEL 10 |
#define | BUTTON_TEXT_X_PADDING 4 |
#define | BUTTON_TEXT_Y_PADDING 10 |
#define | BUTTON_GRAPHIC_PADDING 12 |
#define | FLAT_GRAPHIC_PADDING 4 |
Functions | |
void | AW_variable_update_callback (Widget, XtPointer variable_update_struct, XtPointer call_data) |
static void | track_awar_change_cb (GBDATA *gbd, TrackedAwarChange *tac, GB_CB_TYPE cb_type) |
static int | calculate_scaler_value (AW_awar *awar, AW_ScalerType scalerType) |
static void | write_scalervalue_to_awar (int scalerVal, AW_awar *awar, AW_ScalerType scalerType) |
static void | AW_value_changed_callback (Widget, XtPointer rooti, XtPointer) |
void | aw_attach_widget (Widget w, AW_at *_at, int default_width) |
const char * | AW_get_pixmapPath (const char *pixmapName) |
static char * | pixmapPath (const char *pixmapName) |
static __ATTR__USERESULT GB_ERROR | detect_bitmap_size (const char *pixmapname, int *width, int *height) |
void | calculate_textsize (const char *str, int *width, int *height) |
void | aw_detect_text_size (const char *text, size_t &width, size_t &height) |
static void | scalerChanged_cb (Widget scale, XtPointer variable_update_struct, XtPointer call_data) |
static void | scroll_sellist (Widget scrolledList, bool upwards) |
static void | scroll_sellist_up (Widget scrolledList, XEvent *, String *, Cardinal *) |
static void | scroll_sellist_dn (Widget scrolledList, XEvent *, String *, Cardinal *) |
#define SCALER_MIN_VALUE 0 |
Definition at line 54 of file AW_button.cxx.
Referenced by calculate_scaler_value(), AW_window::create_input_field_with_scaler(), and write_scalervalue_to_awar().
#define SCALER_MAX_VALUE 1000 |
Definition at line 55 of file AW_button.cxx.
Referenced by calculate_scaler_value(), AW_window::create_input_field_with_scaler(), and write_scalervalue_to_awar().
#define MIN_RIGHT_OFFSET 10 |
Referenced by aw_attach_widget().
#define MIN_BOTTOM_OFFSET 10 |
Referenced by aw_attach_widget().
#define MAX_LINE_LENGTH 200 |
Definition at line 277 of file AW_button.cxx.
Referenced by detect_bitmap_size().
#define SPACE_BEHIND_LABEL 10 |
Referenced by AW_window::create_button().
#define BUTTON_TEXT_X_PADDING 4 |
Referenced by AW_window::create_button().
#define BUTTON_TEXT_Y_PADDING 10 |
Referenced by AW_window::create_button().
#define BUTTON_GRAPHIC_PADDING 12 |
Referenced by AW_window::create_button().
#define FLAT_GRAPHIC_PADDING 4 |
Referenced by AW_window::create_button().
void AW_variable_update_callback | ( | Widget | , |
XtPointer | variable_update_struct, | ||
XtPointer | call_data | ||
) |
Definition at line 34 of file AW_button.cxx.
References aw_assert, and VarUpdateInfo::change_from_widget().
Referenced by AW_window::create_input_field(), AW_window::create_selection_list(), AW_window::create_text_field(), and scalerChanged_cb().
|
static |
Definition at line 48 of file AW_button.cxx.
References aw_assert, TrackedAwarChange::awar, TrackedAwarChange::changed, GB_CB_CHANGED, and AW_awar::gb_var.
Referenced by VarUpdateInfo::change_from_widget().
|
static |
Definition at line 57 of file AW_button.cxx.
References AW_ScalerTransformer::awar2scaler(), SCALER_MAX_VALUE, and SCALER_MIN_VALUE.
Referenced by AW_window::create_input_field_with_scaler(), and AW_window::update_scaler().
|
static |
Definition at line 64 of file AW_button.cxx.
References aw_assert, AW_FLOAT, AW_INT, GBK_terminatef(), AW_ScalerTransformer::scaler2awar(), SCALER_MAX_VALUE, SCALER_MIN_VALUE, AW_awar::variable_type, AW_awar::write_float(), and AW_awar::write_int().
Referenced by VarUpdateInfo::change_from_widget().
|
static |
Definition at line 181 of file AW_button.cxx.
References AW_root::value_changed.
Referenced by AW_window::create_input_field(), and AW_window::create_text_field().
Definition at line 186 of file AW_button.cxx.
References aw_xargs::add(), aw_xargs::assign_to_widget(), AW_at::attach_lx, AW_at::attach_ly, AW_at::attach_x, AW_at::attach_y, AW_at::correct_for_at_center, AW_at::max_x_size, AW_at::max_y_size, MIN_BOTTOM_OFFSET, MIN_RIGHT_OFFSET, NULp, AW_at::to_position_exists, AW_at::to_position_x, AW_at::to_position_y, AW_at::x_for_next_button, and AW_at::y_for_next_button.
Referenced by AW_window::create_button(), AW_window::create_input_field(), AW_window::create_selection_list(), AW_window::create_text_field(), AW_window::create_toggle_field(), and AW_window::update_option_menu().
Definition at line 266 of file AW_button.cxx.
References GB_concat_path_in_ARBLIB().
Referenced by AW_window::create_mode(), existingPixmap(), Label::Label(), and pixmapPath().
Definition at line 272 of file AW_button.cxx.
References AW_get_pixmapPath().
Referenced by detect_bitmap_size(), and AW_window::update_toggle().
|
static |
Definition at line 278 of file AW_button.cxx.
References buffer, dot(), GB_IO_error(), GBS_global_string(), MAX_LINE_LENGTH, NULp, and pixmapPath().
Referenced by AW_window::create_button().
Definition at line 355 of file AW_button.cxx.
Referenced by AW_window::create_button().
Definition at line 405 of file AW_button.cxx.
References aw_assert, and aw_detect_text_size().
Referenced by aw_detect_text_size(), aw_question(), and AW_window::create_autosize_button().
|
static |
Definition at line 1122 of file AW_button.cxx.
References AW_variable_update_callback(), VarUpdateInfo::get_awar(), AW_awar::mean_callback_time(), AW_root::SINGLETON, and AW_root::value_changed.
Referenced by AW_window::create_input_field_with_scaler().
|
static |
Definition at line 1196 of file AW_button.cxx.
References force_in_range(), and NULp.
Referenced by scroll_sellist_dn(), and scroll_sellist_up().
|
static |
Definition at line 1212 of file AW_button.cxx.
References scroll_sellist().
Referenced by AW_window::create_selection_list().
|
static |
Definition at line 1213 of file AW_button.cxx.
References scroll_sellist().
Referenced by AW_window::create_selection_list().