| 1 |
////////////////////////////////////////////////////////////////////////////// |
| 2 |
////////////////////////////////////////////////////////////////////////////// |
| 3 |
// |
| 4 |
// copyright : (C) 2014 Eran Ifrah |
| 5 |
// file name : AdapterSelectDlg.h |
| 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 |
#ifndef ADAPTERSELECTDLG_H |
| 27 |
#define ADAPTERSELECTDLG_H |
| 28 |
|
| 29 |
#include "GUI.h" // Base class: _AdapterSelectDlg |
| 30 |
#include <wx/wx.h> |
| 31 |
#include <wx/aui/aui.h> |
| 32 |
|
| 33 |
#include "../Interfaces/imanager.h" |
| 34 |
|
| 35 |
//#ifdef DBL_USE_MYSQL |
| 36 |
#include "MySqlDbAdapter.h" |
| 37 |
//#endif |
| 38 |
|
| 39 |
//#ifdef DBL_USE_SQLITE |
| 40 |
#include "SqliteDbAdapter.h" |
| 41 |
//#endif |
| 42 |
|
| 43 |
//#ifdef DBL_USE_POSTGRES |
| 44 |
#include "PostgreSqlDbAdapter.h" |
| 45 |
//#endif |
| 46 |
|
| 47 |
class xsSerializable; |
| 48 |
class AdapterSelectDlg : public _AdapterSelectDlg { |
| 49 |
|
| 50 |
public: |
| 51 |
AdapterSelectDlg(wxWindow* parent, wxWindow* pParentBook, IManager* pManager, xsSerializable* pConnections); |
| 52 |
virtual ~AdapterSelectDlg(); |
| 53 |
|
| 54 |
virtual void OnMysqlClick(wxCommandEvent& event); |
| 55 |
virtual void OnSqliteClick(wxCommandEvent& event); |
| 56 |
virtual void OnPostgresClick(wxCommandEvent& event); |
| 57 |
|
| 58 |
protected: |
| 59 |
wxWindow* m_pParentBook; |
| 60 |
IManager* m_pManager; |
| 61 |
xsSerializable* m_pConnectons; |
| 62 |
}; |
| 63 |
|
| 64 |
#endif // ADAPTERSELECTDLG_H |