KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_generate_database_connection.h
Go to the documentation of this file.
1
/*
2
* This program source code file is part of KiCad, a free EDA CAD application.
3
*
4
* Copyright (C) 2024 KiCad Developers
5
*
6
* This program is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License as published by the
8
* Free Software Foundation, either version 3 of the License, or (at your
9
* option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef DIALOG_GENERATE_DATABASE_CONNECTION_H
21
#define DIALOG_GENERATE_DATABASE_CONNECTION_H
22
23
#include <vector>
24
25
#include <
dialog_shim.h
>
26
#include <
database/database_lib_settings.h
>
27
28
class
wxChoice;
29
class
wxTextCtrl;
30
class
wxSpinCtrl;
31
class
wxButton;
32
36
class
DIALOG_GENERATE_DATABASE_CONNECTION
:
public
DIALOG_SHIM
37
{
38
public
:
39
DIALOG_GENERATE_DATABASE_CONNECTION
( wxWindow* aParent );
40
41
DATABASE_SOURCE
GetSource
()
const
;
42
43
private
:
44
void
OnDSNChanged
( wxCommandEvent& aEvent );
45
void
OnTest
( wxCommandEvent& aEvent );
46
void
UpdateControls
();
47
48
private
:
49
wxChoice*
m_dsnChoice
;
50
wxTextCtrl*
m_userCtrl
;
51
wxTextCtrl*
m_passCtrl
;
52
wxSpinCtrl*
m_timeoutCtrl
;
53
wxTextCtrl*
m_connStrCtrl
;
54
wxButton*
m_testButton
;
55
wxChoice*
m_tableChoice
;
56
};
57
58
#endif
// DIALOG_GENERATE_DATABASE_CONNECTION_H
DIALOG_GENERATE_DATABASE_CONNECTION::m_timeoutCtrl
wxSpinCtrl * m_timeoutCtrl
Definition
dialog_generate_database_connection.h:52
DIALOG_GENERATE_DATABASE_CONNECTION::OnDSNChanged
void OnDSNChanged(wxCommandEvent &aEvent)
Definition
dialog_generate_database_connection.cpp:115
DIALOG_GENERATE_DATABASE_CONNECTION::OnTest
void OnTest(wxCommandEvent &aEvent)
Definition
dialog_generate_database_connection.cpp:130
DIALOG_GENERATE_DATABASE_CONNECTION::m_connStrCtrl
wxTextCtrl * m_connStrCtrl
Definition
dialog_generate_database_connection.h:53
DIALOG_GENERATE_DATABASE_CONNECTION::m_tableChoice
wxChoice * m_tableChoice
Definition
dialog_generate_database_connection.h:55
DIALOG_GENERATE_DATABASE_CONNECTION::m_testButton
wxButton * m_testButton
Definition
dialog_generate_database_connection.h:54
DIALOG_GENERATE_DATABASE_CONNECTION::m_userCtrl
wxTextCtrl * m_userCtrl
Definition
dialog_generate_database_connection.h:50
DIALOG_GENERATE_DATABASE_CONNECTION::m_dsnChoice
wxChoice * m_dsnChoice
Definition
dialog_generate_database_connection.h:49
DIALOG_GENERATE_DATABASE_CONNECTION::m_passCtrl
wxTextCtrl * m_passCtrl
Definition
dialog_generate_database_connection.h:51
DIALOG_GENERATE_DATABASE_CONNECTION::DIALOG_GENERATE_DATABASE_CONNECTION
DIALOG_GENERATE_DATABASE_CONNECTION(wxWindow *aParent)
Definition
dialog_generate_database_connection.cpp:33
DIALOG_GENERATE_DATABASE_CONNECTION::UpdateControls
void UpdateControls()
Definition
dialog_generate_database_connection.cpp:120
DIALOG_GENERATE_DATABASE_CONNECTION::GetSource
DATABASE_SOURCE GetSource() const
Definition
dialog_generate_database_connection.cpp:93
DIALOG_SHIM::DIALOG_SHIM
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
Definition
dialog_shim.cpp:70
database_lib_settings.h
dialog_shim.h
DATABASE_SOURCE
Definition
database_lib_settings.h:36
src
include
dialogs
dialog_generate_database_connection.h
Generated on Sun Sep 21 2025 01:05:25 for KiCad PCB EDA Suite by
1.13.2