21 #ifndef _goptionpane_h 22 #define _goptionpane_h 27 #include "ginteractor.h" 83 const string& title =
"",
93 const string& message,
94 const string& title =
"",
104 const string& message,
105 const string& title =
"",
115 const string& title =
"",
116 const string& initialValue =
"");
125 const string& message,
126 const string& title =
"",
127 const string& initialValue =
"");
136 const string& message,
137 const string& title =
"",
138 const string& initialValue =
"");
149 const string& title =
"",
161 const string& message,
162 const string& title =
"",
174 const string& message,
175 const string& title =
"",
186 const std::vector<string>& options,
187 const string& title =
"",
188 const string& initiallySelected =
"");
198 const string& message,
199 const std::vector<string>& options,
200 const string& title =
"",
201 const string& initiallySelected =
"");
211 const string& message,
212 const std::vector<string>& options,
213 const string& title =
"",
214 const string& initiallySelected =
"");
221 const string& title =
"",
222 int rows = -1,
int cols = -1);
229 const string& fileText,
230 const string& title =
"",
231 int rows = -1,
int cols = -1);
238 const string& fileText,
239 const string& title =
"",
240 int rows = -1,
int cols = -1);
254 enum InternalResult {
255 INTERNAL_CANCEL_OPTION = 2,
256 INTERNAL_CLOSED_OPTION = -1,
257 INTERNAL_NO_OPTION = 1,
258 INTERNAL_OK_OPTION = 0,
259 INTERNAL_YES_OPTION = 0
265 #endif // _goptionpane_h This class represents a graphics window that supports simple graphics.
Definition: gwindow.h:102
ConfirmType
Types used by showConfirmDialog, representing the three kinds of confirmation dialogs: Yes/No...
Definition: goptionpane.h:44
MessageType
Types used by showMessageDialog, representing the various kinds of message dialogs.
Definition: goptionpane.h:67
Definition: goptionpane.h:70
Definition: goptionpane.h:56
Definition: goptionpane.h:71
This class provides static methods that pop up graphical input/output dialog boxes on the screen...
Definition: goptionpane.h:38
Definition: goptionpane.h:58
static void showMessageDialog(string message, string title="", MessageType type=MESSAGE_PLAIN)
Displays an output message dialog to the user.
Definition: goptionpane.cpp:135
static ConfirmResult showConfirmDialog(string message, string title="", ConfirmType type=CONFIRM_YES_NO)
Pops up a yes/no confirmation box.
Definition: goptionpane.cpp:47
Definition: goptionpane.h:45
Definition: goptionpane.h:59
Definition: goptionpane.h:69
Definition: goptionpane.h:72
ConfirmResult
The various results that can be returned from some option dialogs.
Definition: goptionpane.h:55
Definition: goptionpane.h:46
static string showInputDialog(string message, string title="", string initialValue="")
Pops up an input box with a text field where the user can type a response, which is returned...
Definition: goptionpane.cpp:106
Definition: goptionpane.h:73
Definition: goptionpane.h:47
Definition: goptionpane.h:68
static string showOptionDialog(string message, const std::vector< string > &options, string title="", string initiallySelected="")
Shows a general input box with a set of buttons from which the user may choose one option...
Definition: goptionpane.cpp:177
Definition: goptionpane.h:57
static void showTextFileDialog(string fileText, string title="", int rows=-1, int cols=-1)
Displays the given text in a scrolling monospaced text area.
Definition: goptionpane.cpp:272