drc_hubo_creating_new_al_dw
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
drc_hubo_creating_new_al_dw [2016/11/19 14:27] – dwallace | drc_hubo_creating_new_al_dw [2017/04/27 21:50] (current) – dwallace | ||
---|---|---|---|
Line 22: | Line 22: | ||
Once all of the projects are setup, right click the ALPrograms project, and select "New Subproject" | Once all of the projects are setup, right click the ALPrograms project, and select "New Subproject" | ||
- | {{dylanw: | + | {{dylanw: |
Now, for the template, select " | Now, for the template, select " | ||
- | {{dylanw: | + | {{dylanw: |
Finally, name your project. | Finally, name your project. | ||
Line 38: | Line 38: | ||
First, copy the text from the ALTutorial.pro file to the .pro file for your new AL. | First, copy the text from the ALTutorial.pro file to the .pro file for your new AL. | ||
- | {{dylanw: | + | {{dylanw: |
Next, right-click the new AL project and select "Add Existing Files..." | Next, right-click the new AL project and select "Add Existing Files..." | ||
- | {{dylanw: | + | {{dylanw: |
Navigate to ~/ | Navigate to ~/ | ||
- | {{dylanw: | + | {{dylanw: |
Finally, copy from the ALTutorial main.cpp to your new AL's main.cpp | Finally, copy from the ALTutorial main.cpp to your new AL's main.cpp | ||
- | {{dylanw: | + | {{dylanw: |
==== Changing Commands ==== | ==== Changing Commands ==== | ||
Line 56: | Line 56: | ||
Once you have correctly setup and added files to your AL, you will need to make modifications in the code to give your commands unique names. See the photos below as a guideline. | Once you have correctly setup and added files to your AL, you will need to make modifications in the code to give your commands unique names. See the photos below as a guideline. | ||
- | {{dylanw: | + | {{dylanw: |
Some guidelines that must be followed when naming and creating commands: | Some guidelines that must be followed when naming and creating commands: | ||
Line 70: | Line 70: | ||
First, right-click the PODOGUI project and select "Add New..." | First, right-click the PODOGUI project and select "Add New..." | ||
- | {{dylanw: | + | {{dylanw: |
In the new .h file, include " | In the new .h file, include " | ||
- | {{dylanw: | + | {{dylanw: |
In the new .cpp file, include " | In the new .cpp file, include " | ||
- | {{dylanw: | + | {{dylanw: |
==== Adding a GUI Button ==== | ==== Adding a GUI Button ==== | ||
Line 86: | Line 86: | ||
First, go to the Design tab and edit the .ul file for your new dialog. Drag out a button and rename it. Next, right-click the button and select "Go to slot..." | First, go to the Design tab and edit the .ul file for your new dialog. Drag out a button and rename it. Next, right-click the button and select "Go to slot..." | ||
- | {{dylanw: | + | {{dylanw: |
Now, add the following to the code, and save the file: | Now, add the following to the code, and save the file: | ||
Line 106: | Line 106: | ||
Now you are ready to test your AL. Make sure that it does not break the other ALs that PODO uses. Also make sure that it performs as you have desired. Now you are ready to use you AL! | Now you are ready to test your AL. Make sure that it does not break the other ALs that PODO uses. Also make sure that it performs as you have desired. Now you are ready to use you AL! | ||
+ | |||
+ | ==== Final Words ==== | ||
+ | |||
+ | This tutorial' | ||
+ | \\ | ||
+ | \\ | ||
+ | For questions, clarifications, | ||
drc_hubo_creating_new_al_dw.1479594460.txt.gz · Last modified: by dwallace