| 1 |
////////////////////////////////////////////////////////////////////////////// |
| 2 |
////////////////////////////////////////////////////////////////////////////// |
| 3 |
// |
| 4 |
// copyright : (C) 2014 Eran Ifrah |
| 5 |
// file name : CodePreviewDialog.cpp |
| 6 |
// |
| 7 |
// ------------------------------------------------------------------------- |
| 8 |
// A |
| 9 |
// _____ _ _ _ _ |
| 10 |
// / __ \ | | | | (_) | |
| 11 |
// | / \/ ___ __| | ___| | _| |_ ___ |
| 12 |
// | | / _ \ / _ |/ _ \ | | | __/ _ ) |
| 13 |
// | \__/\ (_) | (_| | __/ |___| | || __/ |
| 14 |
// \____/\___/ \__,_|\___\_____/_|\__\___| |
| 15 |
// |
| 16 |
// F i l e |
| 17 |
// |
| 18 |
// This program is free software; you can redistribute it and/or modify |
| 19 |
// it under the terms of the GNU General Public License as published by |
| 20 |
// the Free Software Foundation; either version 2 of the License, or |
| 21 |
// (at your option) any later version. |
| 22 |
// |
| 23 |
////////////////////////////////////////////////////////////////////////////// |
| 24 |
////////////////////////////////////////////////////////////////////////////// |
| 25 |
|
| 26 |
#include "CodePreviewDialog.h" |
| 27 |
|
| 28 |
CodePreviewDialog::CodePreviewDialog(wxWindow* parent, const wxString& sourceCode):_CodePreviewDialog(parent) |
| 29 |
{ |
| 30 |
m_scintilla3->SetText(sourceCode); |
| 31 |
m_scintilla3->SetReadOnly(true); |
| 32 |
DbViewerPanel::InitStyledTextCtrl( m_scintilla3 ); |
| 33 |
} |
| 34 |
|
| 35 |
CodePreviewDialog::~CodePreviewDialog() |
| 36 |
{ |
| 37 |
} |
| 38 |
|
| 39 |
void CodePreviewDialog::OnOKClick(wxCommandEvent& event) |
| 40 |
{ |
| 41 |
Destroy(); |
| 42 |
} |