| 1 |
<h1>Building GUI for Padre</h1> |
| 2 |
<p> |
| 3 |
Building GUI for Padre can be done either manually as we did earlier or using the wxFormBuilder. |
| 4 |
</p> |
| 5 |
<blockquote> |
| 6 |
<p> |
| 7 |
1. |
| 8 |
a. For Windows download wxFormBuilder from <a href="http://sourceforge.net/projects/wxformbuilder/">http://sourceforge.net/projects/wxformbuilder/</a> |
| 9 |
b. For Ubuntu visit <a href="https://launchpad.net/ubuntu/+source/wxformbuilder">https://launchpad.net/ubuntu/+source/wxformbuilder</a> or better yet <a href="https://launchpad.net/~rjmyst3/+ppa-packages">https://launchpad.net/~rjmyst3/+ppa-packages</a> |
| 10 |
2. Use Padre::Plugin::<a href="/wiki/FormBuilder">FormBuilder</a>. It is not released on CPAN so you need to install it from our repository. |
| 11 |
3. Please follow this discussion <a href="http://irclog.perlgeek.de/padre/2010-12-10#i_3072846">http://irclog.perlgeek.de/padre/2010-12-10#i_3072846</a> |
| 12 |
</p> |
| 13 |
</blockquote> |
| 14 |
<p> |
| 15 |
The actual process is |
| 16 |
</p> |
| 17 |
<ol><li>Using wxFormBuilder open the appropriate file in the project fbp directory. |
| 18 |
</li><li>Install <a href="/wiki/FormBuilder">FormBuilder</a> plugin from SVN (it's not good enough to release) |
| 19 |
<ol><li>NOTE: you need to install the <a href="/wiki/FormBuilder">FormBuilder</a> plugin (not just run it with 'dev -a') as it uses File::<a href="/wiki/ShareDir">ShareDir</a>, which only seems to work fro installed files. |
| 20 |
</li></ol></li><li>Use the <a href="/wiki/FormBuilder">FormBuilder</a> plugin to generate the code for the dialog. |
| 21 |
</li><li>Save the code over the top of the existing .pm module in the Padre::Wx::FBP namespace with no modifications. The ::FBP:: namespace is designed specifically for this purpose, to hold unmodified generated files. |
| 22 |
</li><li>Open the Padre::Wx::Dialog:: module, which inherits from the ::FBP:: module. Edit to apply any custom changes needed to match the generated code.</li></ol> |
| 23 |
<h1>Building GUI application</h1> |
| 24 |
<p> |
| 25 |
TBD. |
| 26 |
</p> |