src/dialogs.cpp

changeset 513
29eb671b34f6
parent 498
791c831c8020
child 526
b29b6fc45ba9
equal deleted inserted replaced
512:adab82ab13a5 513:29eb671b34f6
26 #include <QBoxLayout> 26 #include <QBoxLayout>
27 #include <QGridLayout> 27 #include <QGridLayout>
28 #include <QProgressBar> 28 #include <QProgressBar>
29 #include <QCheckBox> 29 #include <QCheckBox>
30 #include <QDesktopServices> 30 #include <QDesktopServices>
31 #include <QMessageBox>
31 #include <QUrl> 32 #include <QUrl>
32
33 #include "dialogs.h" 33 #include "dialogs.h"
34 #include "widgets.h" 34 #include "widgets.h"
35 #include "gui.h" 35 #include "gui.h"
36 #include "gldraw.h" 36 #include "gldraw.h"
37 #include "docs.h" 37 #include "docs.h"
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 }

mercurial