Code::Blocks  SVN r11506
dlgaboutplugin.cpp
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3  * http://www.gnu.org/licenses/gpl-3.0.html
4  *
5  * $Revision: 10912 $
6  * $Id: dlgaboutplugin.cpp 10912 2016-09-25 16:10:13Z fuscated $
7  * $HeadURL: https://svn.code.sf.net/p/codeblocks/code/trunk/src/src/dlgaboutplugin.cpp $
8  */
9 
10 #include "sdk.h"
11 #ifndef CB_PRECOMP
12  #include <wx/button.h>
13  #include <wx/intl.h>
14  #include <wx/stattext.h>
15  #include <wx/string.h>
16  #include <wx/textctrl.h>
17  #include <wx/xrc/xmlres.h>
18 #endif
19 
20 #include "cbplugin.h"
21 #include "dlgaboutplugin.h" // class's header file
22 
23 // class constructor
25 {
26  wxXmlResource::Get()->LoadObject(this, parent, _T("dlgAboutPlugin"),_T("wxScrollingDialog"));
27  XRCCTRL(*this, "wxID_CANCEL", wxButton)->SetDefault();
28 
29  XRCCTRL(*this, "lblTitle", wxStaticText)->SetLabel(pi->title);
30  XRCCTRL(*this, "txtDescription", wxTextCtrl)->SetValue(pi->description);
31  XRCCTRL(*this, "txtThanksTo", wxTextCtrl)->SetValue(pi->thanksTo);
32  XRCCTRL(*this, "txtLicense", wxTextCtrl)->SetValue(pi->license);
33  XRCCTRL(*this, "lblName", wxStaticText)->SetLabel(pi->name);
34  XRCCTRL(*this, "lblVersion", wxStaticText)->SetLabel(pi->version);
35  XRCCTRL(*this, "lblAuthor", wxStaticText)->SetLabel(pi->author);
36  XRCCTRL(*this, "lblEmail", wxStaticText)->SetLabel(pi->authorEmail);
37  XRCCTRL(*this, "lblWebsite", wxStaticText)->SetLabel(pi->authorWebsite);
38 
39  Fit();
40 }
41 
42 // class destructor
44 {
45  // insert your code here
46 }
wxString authorEmail
Definition: pluginmanager.h:45
wxString license
Definition: pluginmanager.h:48
wxString name
Definition: pluginmanager.h:40
Information about the plugin.
Definition: pluginmanager.h:38
dlgAboutPlugin(wxWindow *parent, const PluginInfo *pi)
#define _T(string)
wxString title
Definition: pluginmanager.h:41
wxString version
Definition: pluginmanager.h:42
wxString thanksTo
Definition: pluginmanager.h:47
wxString authorWebsite
Definition: pluginmanager.h:46
static wxXmlResource * Get()
wxObject * LoadObject(wxWindow *parent, const wxString &name, const wxString &classname)
wxString description
Definition: pluginmanager.h:43
wxString author
Definition: pluginmanager.h:44