Debian Codegraph @

DatabaseExplorer/ViewSettings.h

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // copyright : (C) 2014 Eran Ifrah
5 // file name : ViewSettings.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 VIEWSETTINGS_H
27 #define VIEWSETTINGS_H
28
29 #include <wx/wx.h>
30 #include <wx/validate.h>
31 #include "GUI.h" // Base class: _TableSettings
32 #include <wx/wxsf/DiagramManager.h>
33
34 #include "IDbAdapter.h"
35 #include "view.h"
36
37 /*! \brief Dialog for editing database view */
38 class ViewSettings : public _ViewSettings {
39
40 public:
41 /*! \brief Default constructor */
42 ViewSettings( wxWindow* parent,IDbAdapter* pDbAdapter);
43 /*! \brief Default desctructor */
44 virtual ~ViewSettings();
45 /*! \brief Load view into dialog */
46 void SetView(View* pView, wxSFDiagramManager* pManager);
47
48 virtual void OnOKClick(wxCommandEvent& event);
49
50 protected:
51 IDbAdapter* m_pDbAdapter;
52 View* m_pView;
53 wxSFDiagramManager* m_pDiagramManager;
54 };
55
56 #endif // VIEWSETTINGS_H