00001 #ifndef DIALOG_CLASS 00002 #define DIALOG_CLASS 00003 00004 /*****************************************************************************\ 00005 * * 00006 * Name : dialog * 00007 * Author : Chris Koeritz * 00008 * * 00009 * Purpose: * 00010 * * 00011 * Pops up a dialog window to interact with the user. * 00012 * * 00013 ******************************************************************************* 00014 * Copyright (c) 1991-$now By Author. This program is free software; you can * 00015 * redistribute it and/or modify it under the terms of the GNU General Public * 00016 * License as published by the Free Software Foundation; either version 2 of * 00017 * the License or (at your option) any later version. This is online at: * 00018 * http://www.fsf.org/copyleft/gpl.html * 00019 * Please send any updates to: fred@gruntose.com * 00020 \*****************************************************************************/ 00021 00022 // not implemented. 00023 00024 #include "dll_wp_active.h" 00025 00026 #include <wp_passive/worker.h> 00027 00028 enum dialog_kinds { ONE_TEXT_FIELD }; 00029 00030 class WP_ACTIVE_CLASS_STYLE dialog : public worker 00031 { 00032 public: 00033 dialog(manager &parent, const c_point &origin, dialog_kinds to_create, 00034 const color &foreground = colors::WHITE, const color &background = colors::BLACK); 00035 // Adds a dialog box to the window_handle "parent". 00036 00037 virtual void dialog_event(int cause); 00038 00039 protected: 00040 istring _message; 00041 00042 private: 00043 dialog_kinds _kind; 00044 }; 00045 00046 #endif 00047
1.5.1