30 #include <yui/YDialog.h>
32 #include "NCPushButton.h"
43 friend std::ostream & operator<<( std::ostream & STREAM,
const NCDialog & OBJ );
44 friend std::ostream & operator<<( std::ostream & STREAM,
const NCDialog * OBJ );
52 void Activate( SeekDir Direction );
59 virtual const char * location()
const {
return "NCDialog"; }
64 NCstyle::StyleSet mystyleset;
67 unsigned inMultiDraw_i;
73 YEvent::EventReason eventReason;
79 void grabActive(
NCWidget * nactive );
80 virtual void grabNotify(
NCWidget * mgrab );
81 virtual bool wantFocus(
NCWidget & ngrab );
83 virtual void wCreate(
const wrect & newrect );
84 virtual void wMoveTo(
const wpos & newpos );
85 virtual void wDelete();
86 virtual void wRedraw();
87 virtual void wRecoded();
88 virtual void wUpdate(
bool forced_br =
false );
89 void doUpdate() { wUpdate(
true ); }
100 bool ActivateByKey(
int key );
102 void processInput(
int timeout_millisec );
104 std::map<int, std::string> describeFunctionKeys();
108 bool flushTypeahead();
112 wint_t getch(
int timeout_millisec = -1 );
117 virtual void startMultipleChanges();
118 virtual void doneMultipleChanges();
152 YDialogColorMode colorMode = YDialogNormalColor );
158 void activate(
const bool newactive );
159 bool isActive()
const {
return active; }
166 virtual int preferredWidth();
167 virtual int preferredHeight();
169 virtual void setSize(
int newWidth,
int newHeight );
171 void setStatusLine();
190 typedef unsigned NCDoptflag;
197 NCDialog( YDialogType dialogType,
const wpos at,
const bool boxed =
true );
199 bool isPopup()
const {
return ( ncdopts & POPUP ); }
201 bool isBoxed()
const {
return !( ncdopts & NOBOX ); }
203 virtual void initDialog();
207 return dlgstyle ? *dlgstyle : NCurses::style()[NCstyle::DefaultStyle];
virtual void openInternal()
virtual void setEnabled(bool do_bv)
virtual YEvent * pollEventInternal()
virtual YEvent * waitForEventInternal(int timeout_millisec)