30#pragma warning(disable: 4266)
32#include <FX88591Codec.h>
33#include <FXUTF16Codec.h>
61 auto contents =
new FXVerticalFrame(
myContentFrame, LAYOUT_TOP | LAYOUT_LEFT | LAYOUT_FILL_X | LAYOUT_FILL_Y, 0, 0, 0, 0, 10, 10, 10, 10);
63 new FXLabel(contents,
TL(
"Netedit found an internal critical error and will be closed:"), NULL,
GUIDesignLabel(JUSTIFY_NORMAL));
69 new FXLabel(contents,
TL(
"ErrorTrace:"), NULL,
GUIDesignLabel(JUSTIFY_NORMAL));
70 FXText* text =
new FXText(contents,
nullptr, 0, TEXT_WORDWRAP | LAYOUT_FILL_X | LAYOUT_FILL_Y);
71 text->setEditable(FALSE);
95 types[0] = stringType;
100 acquireClipboard(types, 4);
114 FXEvent*
event = (FXEvent*)ptr;
116 if (GNEDialog::onClipboardRequest(sender, sel, ptr)) {
120 if (event->target == stringType || event->target == textType || event->target == utf8Type || event->target == utf16Type) {
122 if (event->target == utf8Type) {
123 setDNDData(FROM_CLIPBOARD, event->target,
myTraceText.c_str());
127 if (event->target == stringType || event->target == textType) {
129 setDNDData(FROM_CLIPBOARD, event->target, ascii.utf2mb(
myTraceText.c_str()));
133 if (event->target == utf16Type) {
134 FXUTF16LECodec unicode;
135 setDNDData(FROM_CLIPBOARD, event->target, unicode.utf2mb(
myTraceText.c_str()));
FXDEFMAP(GNECrashDialog) GNECrashDialogMap[]
#define GUIDesignTextField
#define GUIDesignLabel(justify)
GUIIcon
An enumeration of icons used by the gui applications.
The main window of Netedit.
long onCmdReport(FXObject *, FXSelector, void *)
called when report button is pressed
MFXTextFieldIcon * myExceptionTextField
exception text field
long onClipboardRequest(FXObject *sender, FXSelector sel, void *ptr)
called when clipboard is request
long onCmdCopy(FXObject *, FXSelector, void *)
called when copy button is pressed
GNECrashDialog(GNEApplicationWindow *applicationWindow, const ProcessError &processError)
Constructor.
~GNECrashDialog()
Destructor.
std::string myTraceText
trace text
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
FXButton * myCopyButton
copy button
FXVerticalFrame * myContentFrame
content frame
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
OpenType
Open dialog type.
GNEDialog(GNEApplicationWindow *applicationWindow, const std::string &name, GUIIcon titleIcon, DialogType type, Buttons buttons, OpenType openType, ResizeMode resizeMode)
basic constructor
dialog arguments, used for certain modal dialogs that can not be edited using tab
static FXint fxexecute(FXString link)