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

htiobox.cc File Reference

#include "htatom.h"
#include "htctrl.h"
#include "htdialog.h"
#include "hthist.h"
#include "htiobox.h"
#include "snprintf.h"
#include "tools.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

int imsgbox (bounds *b, int buttonmask, const char *title, bool modal, statictext_align align, char *buf)
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, const char *format,...)
bool inputbox (const char *title, const char *label, char *result, int limit, dword histid)
bool inputboxrect (bounds *b, const char *title, const char *label, char *result, int limit, dword histid)
void get_std_progress_indicator_metrics (bounds *b)


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().

int imsgbox bounds *  b,
int  buttonmask,
const char *  title,
bool  modal,
statictext_align  align,
char *  buf
 

Definition at line 33 of file htiobox.cc.

References btmask_all, btmask_cancel, btmask_no, btmask_none, btmask_ok, btmask_skip, btmask_yes, buf, button_all, button_cancel, button_no, button_none, button_ok, button_skip, button_yes, ht_dialog::done(), FS_KILLER, FS_MOVE, FS_RESIZE, FS_TITLE, ht_view::getbounds(), GMH_FIT, GMH_LEFT, GMV_BOTTOM, GMV_FIT, ht_view::growmode, ht_button::init(), ht_statictext::init(), ht_dialog::init(), ht_window::insert(), MK_GM, ht_dialog::run(), and ht_view::setbounds().

Referenced by msgbox(), and msgboxrect().

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

Definition at line 184 of file htiobox.cc.

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

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

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

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_dialog::init(), ht_strinputfield::init(), ht_label::init(), ht_button::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_app::handlemsg(), ht_file_window::handlemsg(), and replace_dialog().

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

Definition at line 173 of file htiobox.cc.

References buf, ht_vsnprintf(), and imsgbox().


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