| 40 #include "ui_overlay.h" |
40 #include "ui_overlay.h" |
| 41 #include "ui_ldrawpath.h" |
41 #include "ui_ldrawpath.h" |
| 42 #include "ui_openprogress.h" |
42 #include "ui_openprogress.h" |
| 43 #include "ui_extprogpath.h" |
43 #include "ui_extprogpath.h" |
| 44 #include "ui_about.h" |
44 #include "ui_about.h" |
| |
45 #include "ui_bombbox.h" |
| |
46 #include "moc_dialogs.cpp" |
| 45 |
47 |
| 46 extern const char* g_extProgPathFilter; |
48 extern const char* g_extProgPathFilter; |
| 47 extern_cfg (String, io_ldpath); |
49 extern_cfg (String, io_ldpath); |
| 48 |
50 |
| 49 // ============================================================================= |
51 // ============================================================================= |
| 330 // ============================================================================= |
332 // ============================================================================= |
| 331 // ----------------------------------------------------------------------------- |
333 // ----------------------------------------------------------------------------- |
| 332 void AboutDialog::slot_mail() |
334 void AboutDialog::slot_mail() |
| 333 { QDesktopServices::openUrl (QUrl ("mailto:Santeri Piippo <slatenails64@gmail.com>?subject=LDForge")); |
335 { QDesktopServices::openUrl (QUrl ("mailto:Santeri Piippo <slatenails64@gmail.com>?subject=LDForge")); |
| 334 } |
336 } |
| 335 #include "moc_dialogs.cpp" |
337 |
| |
338 // ============================================================================= |
| |
339 // ----------------------------------------------------------------------------- |
| |
340 void bombBox (const str& message) |
| |
341 { QDialog dlg (g_win); |
| |
342 Ui_BombBox ui; |
| |
343 |
| |
344 ui.setupUi (&dlg); |
| |
345 ui.m_text->setText (message); |
| |
346 ui.buttonBox->button (QDialogButtonBox::Close)->setText (QObject::tr ("Damn it")); |
| |
347 dlg.exec(); |
| |
348 } |