Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
4cb0cf64
Commit
4cb0cf64
authored
Jan 10, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit missing files.
parent
ccfd2369
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
788 additions
and
0 deletions
+788
-0
dialog_list_selector_base.cpp
common/dialogs/dialog_list_selector_base.cpp
+80
-0
dialog_list_selector_base.fbp
common/dialogs/dialog_list_selector_base.fbp
+642
-0
dialog_list_selector_base.h
common/dialogs/dialog_list_selector_base.h
+66
-0
No files found.
common/dialogs/dialog_list_selector_base.cpp
0 → 100644
View file @
4cb0cf64
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Oct 8 2012)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "dialog_list_selector_base.h"
///////////////////////////////////////////////////////////////////////////
EDA_LIST_DIALOG_BASE
::
EDA_LIST_DIALOG_BASE
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxString
&
title
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
:
DIALOG_SHIM
(
parent
,
id
,
title
,
pos
,
size
,
style
)
{
this
->
SetSizeHints
(
wxDefaultSize
,
wxDefaultSize
);
wxBoxSizer
*
bSizerMain
;
bSizerMain
=
new
wxBoxSizer
(
wxVERTICAL
);
m_filterLabel
=
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"Filter:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_filterLabel
->
Wrap
(
-
1
);
m_filterLabel
->
SetToolTip
(
_
(
"Enter a string to filter items.
\n
Only names containing this string will be listed"
)
);
bSizerMain
->
Add
(
m_filterLabel
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
m_filterBox
=
new
wxTextCtrl
(
this
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
bSizerMain
->
Add
(
m_filterBox
,
0
,
wxEXPAND
|
wxBOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
m_staticText2
=
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"Items:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText2
->
Wrap
(
-
1
);
bSizerMain
->
Add
(
m_staticText2
,
0
,
wxRIGHT
|
wxLEFT
,
5
);
m_listBox
=
new
wxListBox
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
0
,
NULL
,
0
);
m_listBox
->
SetMinSize
(
wxSize
(
300
,
200
)
);
bSizerMain
->
Add
(
m_listBox
,
1
,
wxBOTTOM
|
wxRIGHT
|
wxLEFT
|
wxEXPAND
,
5
);
m_staticTextMsg
=
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"Messages:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextMsg
->
Wrap
(
-
1
);
bSizerMain
->
Add
(
m_staticTextMsg
,
0
,
wxRIGHT
|
wxLEFT
,
5
);
m_messages
=
new
wxTextCtrl
(
this
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxTE_MULTILINE
|
wxTE_READONLY
);
m_messages
->
SetMinSize
(
wxSize
(
-
1
,
80
)
);
bSizerMain
->
Add
(
m_messages
,
0
,
wxEXPAND
|
wxBOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
m_sdbSizer
=
new
wxStdDialogButtonSizer
();
m_sdbSizerOK
=
new
wxButton
(
this
,
wxID_OK
);
m_sdbSizer
->
AddButton
(
m_sdbSizerOK
);
m_sdbSizerCancel
=
new
wxButton
(
this
,
wxID_CANCEL
);
m_sdbSizer
->
AddButton
(
m_sdbSizerCancel
);
m_sdbSizer
->
Realize
();
bSizerMain
->
Add
(
m_sdbSizer
,
0
,
wxALIGN_RIGHT
,
5
);
this
->
SetSizer
(
bSizerMain
);
this
->
Layout
();
this
->
Centre
(
wxBOTH
);
// Connect Events
this
->
Connect
(
wxEVT_CLOSE_WINDOW
,
wxCloseEventHandler
(
EDA_LIST_DIALOG_BASE
::
onClose
)
);
m_filterBox
->
Connect
(
wxEVT_COMMAND_TEXT_UPDATED
,
wxCommandEventHandler
(
EDA_LIST_DIALOG_BASE
::
textChangeInFilterBox
),
NULL
,
this
);
m_listBox
->
Connect
(
wxEVT_COMMAND_LISTBOX_SELECTED
,
wxCommandEventHandler
(
EDA_LIST_DIALOG_BASE
::
onClickOnList
),
NULL
,
this
);
m_listBox
->
Connect
(
wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
,
wxCommandEventHandler
(
EDA_LIST_DIALOG_BASE
::
onDClickOnList
),
NULL
,
this
);
m_sdbSizerCancel
->
Connect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
EDA_LIST_DIALOG_BASE
::
onCancelClick
),
NULL
,
this
);
m_sdbSizerOK
->
Connect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
EDA_LIST_DIALOG_BASE
::
onOkClick
),
NULL
,
this
);
}
EDA_LIST_DIALOG_BASE
::~
EDA_LIST_DIALOG_BASE
()
{
// Disconnect Events
this
->
Disconnect
(
wxEVT_CLOSE_WINDOW
,
wxCloseEventHandler
(
EDA_LIST_DIALOG_BASE
::
onClose
)
);
m_filterBox
->
Disconnect
(
wxEVT_COMMAND_TEXT_UPDATED
,
wxCommandEventHandler
(
EDA_LIST_DIALOG_BASE
::
textChangeInFilterBox
),
NULL
,
this
);
m_listBox
->
Disconnect
(
wxEVT_COMMAND_LISTBOX_SELECTED
,
wxCommandEventHandler
(
EDA_LIST_DIALOG_BASE
::
onClickOnList
),
NULL
,
this
);
m_listBox
->
Disconnect
(
wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
,
wxCommandEventHandler
(
EDA_LIST_DIALOG_BASE
::
onDClickOnList
),
NULL
,
this
);
m_sdbSizerCancel
->
Disconnect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
EDA_LIST_DIALOG_BASE
::
onCancelClick
),
NULL
,
this
);
m_sdbSizerOK
->
Disconnect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
EDA_LIST_DIALOG_BASE
::
onOkClick
),
NULL
,
this
);
}
common/dialogs/dialog_list_selector_base.fbp
0 → 100644
View file @
4cb0cf64
This diff is collapsed.
Click to expand it.
common/dialogs/dialog_list_selector_base.h
0 → 100644
View file @
4cb0cf64
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Oct 8 2012)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __DIALOG_LIST_SELECTOR_BASE_H__
#define __DIALOG_LIST_SELECTOR_BASE_H__
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
class
DIALOG_SHIM
;
#include "dialog_shim.h"
#include <wx/string.h>
#include <wx/stattext.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/textctrl.h>
#include <wx/listbox.h>
#include <wx/sizer.h>
#include <wx/button.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class EDA_LIST_DIALOG_BASE
///////////////////////////////////////////////////////////////////////////////
class
EDA_LIST_DIALOG_BASE
:
public
DIALOG_SHIM
{
private
:
protected
:
wxStaticText
*
m_filterLabel
;
wxTextCtrl
*
m_filterBox
;
wxStaticText
*
m_staticText2
;
wxListBox
*
m_listBox
;
wxStaticText
*
m_staticTextMsg
;
wxTextCtrl
*
m_messages
;
wxStdDialogButtonSizer
*
m_sdbSizer
;
wxButton
*
m_sdbSizerOK
;
wxButton
*
m_sdbSizerCancel
;
// Virtual event handlers, overide them in your derived class
virtual
void
onClose
(
wxCloseEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
textChangeInFilterBox
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
onClickOnList
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
onDClickOnList
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
onCancelClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
onOkClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
public
:
EDA_LIST_DIALOG_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
wxEmptyString
,
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
329
,
398
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
EDA_LIST_DIALOG_BASE
();
};
#endif //__DIALOG_LIST_SELECTOR_BASE_H__
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment