19 #ifndef _goptionpane_h 20 #define _goptionpane_h 25 #include "ginteractor.h" 79 const string& title =
"",
89 const string& message,
90 const string& title =
"",
100 const string& message,
101 const string& title =
"",
111 const string& title =
"",
112 const string& initialValue =
"");
121 const string& message,
122 const string& title =
"",
123 const string& initialValue =
"");
132 const string& message,
133 const string& title =
"",
134 const string& initialValue =
"");
145 const string& title =
"",
157 const string& message,
158 const string& title =
"",
170 const string& message,
171 const string& title =
"",
182 const std::vector<string>& options,
183 const string& title =
"",
184 const string& initiallySelected =
"");
194 const string& message,
195 const std::vector<string>& options,
196 const string& title =
"",
197 const string& initiallySelected =
"");
207 const string& message,
208 const std::vector<string>& options,
209 const string& title =
"",
210 const string& initiallySelected =
"");
217 const string& title =
"",
218 int rows = -1,
int cols = -1);
225 const string& fileText,
226 const string& title =
"",
227 int rows = -1,
int cols = -1);
234 const string& fileText,
235 const string& title =
"",
236 int rows = -1,
int cols = -1);
250 enum InternalResult {
251 INTERNAL_CANCEL_OPTION = 2,
252 INTERNAL_CLOSED_OPTION = -1,
253 INTERNAL_NO_OPTION = 1,
254 INTERNAL_OK_OPTION = 0,
255 INTERNAL_YES_OPTION = 0
259 #endif // _goptionpane_h 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:102
Definition: goptionpane.h:55
static ConfirmResult showConfirmDialog(string message, string title="", ConfirmType type=CONFIRM_YES_NO)
Pops up a yes/no confirmation box.
Definition: goptionpane.cpp:43
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:173
Definition: goptionpane.h:52
Definition: goptionpane.h:41
Definition: goptionpane.h:65
Definition: goptionpane.h:68
static void showMessageDialog(string message, string title="", MessageType type=MESSAGE_PLAIN)
Displays an output message dialog to the user.
Definition: goptionpane.cpp:131
Definition: goptionpane.h:64
ConfirmResult
The various results that can be returned from some option dialogs.
Definition: goptionpane.h:51
ConfirmType
Types used by showConfirmDialog, representing the three kinds of confirmation dialogs: Yes/No...
Definition: goptionpane.h:40
This class provides static methods that pop up graphical input/output dialog boxes on the screen...
Definition: goptionpane.h:34
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:268
Definition: goptionpane.h:69
This class represents a graphics window that supports simple graphics.
Definition: gwindow.h:98
Definition: goptionpane.h:66
MessageType
Types used by showMessageDialog, representing the various kinds of message dialogs.
Definition: goptionpane.h:63
Definition: goptionpane.h:43
Definition: goptionpane.h:67
Definition: goptionpane.h:42
Definition: goptionpane.h:54
Definition: goptionpane.h:53