Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htiobox.h File Reference

#include "htdialog.h"

Go to the source code of this file.

Defines

#define btmask_ok   1
#define btmask_cancel   2
#define btmask_yes   4
#define btmask_no   8
#define btmask_skip   16
#define btmask_all   32
#define btmask_none   64
#define errorbox(a...)   msgbox(btmask_ok, "error", false, align_center, a)
#define infobox(a...)   msgbox(btmask_ok, "information", false, align_center, a)
#define warnbox(a...)   msgbox(btmask_ok, "warning", false, align_center, a)
#define confirmbox(a...)   msgbox(btmask_yes+btmask_no, "confirmation", false, align_center, a)
#define errorbox_c(a...)   msgbox(btmask_ok, "error", false, align_custom, a)
#define infobox_c(a...)   msgbox(btmask_ok, "information", false, align_custom, a)
#define warnbox_c(a...)   msgbox(btmask_ok, "warning", false, align_custom, a)
#define confirmbox_c(a...)   msgbox(btmask_yes+btmask_no, "confirmation", false, align_custom, a)
#define errorbox_modal(a...)   msgbox(btmask_ok, "error", true, align_center, a)
#define infobox_modal(a...)   msgbox(btmask_ok, "information", true, align_center, a)
#define warnbox_modal(a...)   msgbox(btmask_ok, "warning", true, align_center, a)
#define confirmbox_modal(a...)   msgbox(btmask_yes+btmask_no, "confirmation", true, align_center, a)

Functions

int msgbox (int buttonmask, const char *title, bool modal, statictext_align align, const char *format,...)
int msgboxrect (bounds *b, int buttonmask, const char *title, bool modal, statictext_align align, bounds *b, const char *format,...)
bool inputbox (const char *title, const char *label, char *result, int limit, dword histid=0)
bool inputboxrect (bounds *b, const char *title, const char *label, char *result, int limit, dword histid=0)
void get_std_progress_indicator_metrics (bounds *b)


Define Documentation

#define btmask_all   32
 

Definition at line 32 of file htiobox.h.

Referenced by imsgbox(), and replace_dialog().

#define btmask_cancel   2
 

Definition at line 28 of file htiobox.h.

Referenced by ht_file_window::handlemsg(), imsgbox(), and replace_dialog().

#define btmask_no   8
 

Definition at line 30 of file htiobox.h.

Referenced by app_stream_error_func(), ht_file_window::handlemsg(), imsgbox(), and replace_dialog().

#define btmask_none   64
 

Definition at line 33 of file htiobox.h.

Referenced by imsgbox().

#define btmask_ok   1
 

Definition at line 27 of file htiobox.h.

Referenced by ht_app::handlemsg(), and imsgbox().

#define btmask_skip   16
 

Definition at line 31 of file htiobox.h.

Referenced by imsgbox().

#define btmask_yes   4
 

Definition at line 29 of file htiobox.h.

Referenced by app_stream_error_func(), ht_file_window::handlemsg(), imsgbox(), and replace_dialog().

#define confirmbox a...   )     msgbox(btmask_yes+btmask_no, "confirmation", false, align_center, a)
 

Definition at line 41 of file htiobox.h.

Referenced by ht_uformat_viewer::func(), ht_format_viewer::handlemsg(), ht_app::handlemsg(), ht_project_listbox::handlemsg(), ht_aviewer::handlemsg(), ht_app::project_opencreate(), and ht_aviewer::showXRefs().

#define confirmbox_c a...   )     msgbox(btmask_yes+btmask_no, "confirmation", false, align_custom, a)
 

Definition at line 46 of file htiobox.h.

Referenced by file_window_load_fcfg_func().

#define confirmbox_modal a...   )     msgbox(btmask_yes+btmask_no, "confirmation", true, align_center, a)
 

Definition at line 51 of file htiobox.h.

Referenced by main().

#define errorbox a...   )     msgbox(btmask_ok, "error", false, align_center, a)
 

Definition at line 38 of file htiobox.h.

Referenced by blockop_dialog(), ht_aviewer::canCreateAddress(), ht_text_viewer::continue_search(), ht_format_viewer::continue_search(), ht_app::create_window_file_bin(), ht_app::create_window_help(), ht_app::create_window_term(), dialog_assemble(), ht_le::do_fixups(), format_string_to_offset_if_avail(), ht_uformat_viewer::func(), ht_aviewer::generateOutputDialog(), ht_text_viewer::handlemsg(), ht_info_viewer::handlemsg(), ht_hex_viewer::handlemsg(), ht_uformat_viewer::handlemsg(), ht_format_viewer::handlemsg(), ht_app::handlemsg(), ht_aviewer::handlemsg(), htpefimports_init(), ht_ne::init(), ht_elf::init(), PEAnalyser::initUnasm(), ElfAnalyser::initUnasm(), ht_app::project_opencreate(), ht_pe_header_viewer::ref_sel(), replace_dialog(), ht_text_editor::save(), search_dialog(), ht_xbe_import_viewer::select_entry(), ht_pe_import_viewer::select_entry(), ht_pe_export_viewer::select_entry(), ht_pe_dimport_viewer::select_entry(), ht_aviewer::showXRefs(), srt_x86(), and text_search_dialog().

#define errorbox_c a...   )     msgbox(btmask_ok, "error", false, align_custom, a)
 

Definition at line 43 of file htiobox.h.

#define errorbox_modal a...   )     msgbox(btmask_ok, "error", true, align_center, a)
 

Definition at line 48 of file htiobox.h.

Referenced by app_stream_error_func().

#define infobox a...   )     msgbox(btmask_ok, "information", false, align_center, a)
 

Definition at line 39 of file htiobox.h.

Referenced by ht_aviewer::exportFileDialog(), ht_text_viewer::func(), ht_aviewer::generateOutputDialog(), ht_text_viewer::handlemsg(), ht_hex_viewer::handlemsg(), ht_uformat_viewer::handlemsg(), ht_app::handlemsg(), ht_aviewer::handlemsg(), and main().

#define infobox_c a...   )     msgbox(btmask_ok, "information", false, align_custom, a)
 

Definition at line 44 of file htiobox.h.

#define infobox_modal a...   )     msgbox(btmask_ok, "information", true, align_center, a)
 

Definition at line 49 of file htiobox.h.

#define warnbox a...   )     msgbox(btmask_ok, "warning", false, align_center, a)
 

Definition at line 40 of file htiobox.h.

Referenced by PEFAnalyser::initUnasm(), PEAnalyser::initUnasm(), MachoAnalyser::initUnasm(), ElfAnalyser::initUnasm(), and CoffAnalyser::initUnasm().

#define warnbox_c a...   )     msgbox(btmask_ok, "warning", false, align_custom, a)
 

Definition at line 45 of file htiobox.h.

#define warnbox_modal a...   )     msgbox(btmask_ok, "warning", true, align_center, a)
 

Definition at line 50 of file htiobox.h.

Referenced by app_out_of_memory_proc().


Function Documentation

void get_std_progress_indicator_metrics bounds *  b  ) 
 

Definition at line 261 of file htiobox.cc.

References app, ht_view::getbounds(), screen, and genericdrawbuf::size.

Referenced by execute_process(), and ht_uformat_viewer::vsearch().

bool inputbox const char *  title,
const char *  label,
char *  result,
int  limit,
dword  histid = 0
 

Definition at line 184 of file htiobox.cc.

References app, ht_view::getbounds(), and inputboxrect().

Referenced by dialog_assemble(), ht_registry_data_string::editdialog(), ht_registry_data_dword::editdialog(), ht_text_viewer::handlemsg(), TerminalViewer::handlemsg(), ht_hex_viewer::handlemsg(), ht_uformat_viewer::handlemsg(), ht_app::handlemsg(), ht_aviewer::handlemsg(), and ht_aviewer::showXRefs().

bool inputboxrect bounds *  b,
const char *  title,
const char *  label,
char *  result,
int  limit,
dword  histid = 0
 

Definition at line 195 of file htiobox.cc.

References bin2str(), button_cancel, button_ok, byte, ht_view::databuf_get(), ht_view::databuf_set(), ht_inputfield::datasize(), ht_dialog::done(), find_atom(), FS_KILLER, FS_MOVE, FS_RESIZE, FS_TITLE, ht_button::init(), ht_label::init(), ht_strinputfield::init(), ht_dialog::init(), ht_window::insert(), insert_history_entry(), malloc(), and ht_dialog::run().

Referenced by inputbox().

int msgbox int  buttonmask,
const char *  title,
bool  modal,
statictext_align  align,
const char *  format,
... 
 

Definition at line 148 of file htiobox.cc.

References app, buf, ht_view::getbounds(), ht_vsnprintf(), imsgbox(), MAX, screen, and genericdrawbuf::size.

Referenced by app_stream_error_func(), ht_file_window::handlemsg(), ht_app::handlemsg(), and replace_dialog().

int msgboxrect bounds *  b,
int  buttonmask,
const char *  title,
bool  modal,
statictext_align  align,
bounds *  b,
const char *  format,
... 
 


Generated on Fri May 7 21:15:49 2004 by doxygen 1.3.5