drc_hubo_creating_new_al_dw
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
drc_hubo_creating_new_al_dw [2016/11/19 14:19] – created dwallace | drc_hubo_creating_new_al_dw [2017/04/27 21:50] (current) – dwallace | ||
---|---|---|---|
Line 20: | Line 20: | ||
Before creating the AL, we must first make sure that PODO is setup properly within Qt. Make sure that you add all the required project to Qt according to the [[software_setup_dw|Software Tutorial]]. Make sure that all projects are set to Release, and not Debug. | Before creating the AL, we must first make sure that PODO is setup properly within Qt. Make sure that you add all the required project to Qt according to the [[software_setup_dw|Software Tutorial]]. Make sure that all projects are set to Release, and not Debug. | ||
- | 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: | ||
+ | |||
+ | Now, for the template, select " | ||
+ | |||
+ | {{dylanw: | ||
Finally, name your project. | Finally, name your project. | ||
Line 32: | 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. | ||
- | Next, right-click the new AL project and select "Add Existing Files..." | + | {{dylanw: |
+ | |||
+ | Next, right-click the new AL project and select "Add Existing Files..." | ||
+ | |||
+ | {{dylanw: | ||
+ | |||
+ | Navigate to ~/ | ||
+ | |||
+ | {{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: | ||
==== Changing Commands ==== | ==== Changing Commands ==== | ||
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: | ||
Some guidelines that must be followed when naming and creating commands: | Some guidelines that must be followed when naming and creating commands: | ||
Line 51: | Line 69: | ||
First, right-click the PODOGUI project and select "Add New..." | First, right-click the PODOGUI project and select "Add New..." | ||
+ | |||
+ | {{dylanw: | ||
In the new .h file, include " | In the new .h file, include " | ||
+ | |||
+ | {{dylanw: | ||
In the new .cpp file, include " | In the new .cpp file, include " | ||
+ | |||
+ | {{dylanw: | ||
==== Adding a GUI Button ==== | ==== Adding a GUI Button ==== | ||
Line 60: | Line 84: | ||
Now, we need to add a button to the GUI for our command. | Now, we need to add a button to the GUI for our command. | ||
- | 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: | ||
+ | |||
+ | Now, add the following to the code, and save the file: | ||
<code c++> | <code c++> | ||
Line 78: | 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.1479593996.txt.gz · Last modified: by dwallace