#include <configuration_files_widget.h>
Public Member Functions | |
ConfigurationFilesWidget (QWidget *parent, moveit_setup_assistant::MoveItConfigDataPtr config_data) | |
virtual void | focusGiven () |
Recieved when this widget is chosen from the navigation menu. | |
Public Attributes | |
QList< QString > | action_desc_ |
QLabel * | action_label_ |
QListWidget * | action_list_ |
QPushButton * | btn_save_ |
QProgressBar * | progress_bar_ |
LoadPathWidget * | stack_path_ |
QLabel * | success_label_ |
Private Slots | |
void | changeActionDesc (int id) |
Display the selected action in the desc box. | |
void | changeCheckedState (QListWidgetItem *item) |
Disable or enable item in gen_files_ array. | |
void | exitSetupAssistant () |
Quit the program because we are done. | |
bool | generatePackage () |
Generate the package. | |
void | savePackage () |
Save package click event. | |
Private Member Functions | |
bool | addTemplateString (const std::string &key, const std::string &value) |
Insert a string pair into the template_strings_ datastructure. | |
bool | checkDependencies () |
Verify with user if certain screens have not been completed. | |
bool | checkGenFiles () |
bool | copyTemplate (const std::string &template_path, const std::string &output_path) |
bool | createFolder (const std::string &output_path) |
Create a folder. | |
const std::string | getPackageName (std::string package_path) |
Get the last folder name in a directory path. | |
bool | loadGenFiles () |
Populate the 'Files to be generated' list. | |
void | loadTemplateStrings () |
Load the strings that will be replaced in all templates. | |
bool | noGroupsEmpty () |
Check that no group is empty (without links/joints/etc) | |
void | showGenFiles () |
Show the list of files to be generated. | |
void | updateProgress () |
A function for showing progress and user feedback about what happened. | |
Private Attributes | |
unsigned int | action_num_ |
Track progress. | |
moveit_setup_assistant::MoveItConfigDataPtr | config_data_ |
Contains all the configuration data for the setup assistant. | |
bool | first_focusGiven_ |
Populate the 'Files to be Generated' list just once. | |
std::vector< GenerateFile > | gen_files_ |
Vector of all files to be generated. | |
bool | has_generated_pkg_ |
Has the package been generated yet this program execution? Used for popping up exit warning. | |
std::string | new_package_name_ |
Name of the new package that is being (or going) to be generated, based on user specified save path. | |
StringPairVector | template_strings_ |
Vector of all strings to search for in templates, and their replacements. |
Definition at line 75 of file configuration_files_widget.h.
moveit_setup_assistant::ConfigurationFilesWidget::ConfigurationFilesWidget | ( | QWidget * | parent, |
moveit_setup_assistant::MoveItConfigDataPtr | config_data | ||
) |
Definition at line 63 of file configuration_files_widget.cpp.
bool moveit_setup_assistant::ConfigurationFilesWidget::addTemplateString | ( | const std::string & | key, |
const std::string & | value | ||
) | [private] |
Insert a string pair into the template_strings_ datastructure.
key | string to search in template |
value | string to replace with |
Definition at line 887 of file configuration_files_widget.cpp.
void moveit_setup_assistant::ConfigurationFilesWidget::changeActionDesc | ( | int | id | ) | [private, slot] |
Display the selected action in the desc box.
Definition at line 485 of file configuration_files_widget.cpp.
void moveit_setup_assistant::ConfigurationFilesWidget::changeCheckedState | ( | QListWidgetItem * | item | ) | [private, slot] |
Disable or enable item in gen_files_ array.
Definition at line 498 of file configuration_files_widget.cpp.
bool moveit_setup_assistant::ConfigurationFilesWidget::checkDependencies | ( | ) | [private] |
Verify with user if certain screens have not been completed.
Definition at line 417 of file configuration_files_widget.cpp.
bool moveit_setup_assistant::ConfigurationFilesWidget::checkGenFiles | ( | ) | [private] |
Check the list of files to be generated for modification Returns true if files were detected as modified
Definition at line 542 of file configuration_files_widget.cpp.
bool moveit_setup_assistant::ConfigurationFilesWidget::copyTemplate | ( | const std::string & | template_path, |
const std::string & | output_path | ||
) | [private] |
Copy a template from location <template_path> to location <output_path> and replace package name
template_path | path to template file |
output_path | desired path to copy to |
new_package_name | name of the new package being created, to replace key word in template |
Definition at line 895 of file configuration_files_widget.cpp.
bool moveit_setup_assistant::ConfigurationFilesWidget::createFolder | ( | const std::string & | output_path | ) | [private] |
Create a folder.
output_path | name of folder relative to package |
Definition at line 949 of file configuration_files_widget.cpp.
void moveit_setup_assistant::ConfigurationFilesWidget::exitSetupAssistant | ( | ) | [private, slot] |
Quit the program because we are done.
Definition at line 768 of file configuration_files_widget.cpp.
void moveit_setup_assistant::ConfigurationFilesWidget::focusGiven | ( | ) | [virtual] |
Recieved when this widget is chosen from the navigation menu.
Reimplemented from SetupScreenWidget.
Definition at line 512 of file configuration_files_widget.cpp.
bool moveit_setup_assistant::ConfigurationFilesWidget::generatePackage | ( | ) | [private, slot] |
Generate the package.
Definition at line 664 of file configuration_files_widget.cpp.
const std::string moveit_setup_assistant::ConfigurationFilesWidget::getPackageName | ( | std::string | package_path | ) | [private] |
Get the last folder name in a directory path.
Definition at line 781 of file configuration_files_widget.cpp.
bool moveit_setup_assistant::ConfigurationFilesWidget::loadGenFiles | ( | ) | [private] |
Populate the 'Files to be generated' list.
Definition at line 174 of file configuration_files_widget.cpp.
void moveit_setup_assistant::ConfigurationFilesWidget::loadTemplateStrings | ( | ) | [private] |
Load the strings that will be replaced in all templates.
Definition at line 834 of file configuration_files_widget.cpp.
bool moveit_setup_assistant::ConfigurationFilesWidget::noGroupsEmpty | ( | ) | [private] |
Check that no group is empty (without links/joints/etc)
Definition at line 805 of file configuration_files_widget.cpp.
void moveit_setup_assistant::ConfigurationFilesWidget::savePackage | ( | ) | [private, slot] |
Save package click event.
Definition at line 639 of file configuration_files_widget.cpp.
void moveit_setup_assistant::ConfigurationFilesWidget::showGenFiles | ( | ) | [private] |
Show the list of files to be generated.
Definition at line 592 of file configuration_files_widget.cpp.
void moveit_setup_assistant::ConfigurationFilesWidget::updateProgress | ( | ) | [private] |
A function for showing progress and user feedback about what happened.
Definition at line 471 of file configuration_files_widget.cpp.
Definition at line 98 of file configuration_files_widget.h.
Definition at line 96 of file configuration_files_widget.h.
Definition at line 95 of file configuration_files_widget.h.
unsigned int moveit_setup_assistant::ConfigurationFilesWidget::action_num_ [private] |
Track progress.
Definition at line 135 of file configuration_files_widget.h.
Definition at line 92 of file configuration_files_widget.h.
moveit_setup_assistant::MoveItConfigDataPtr moveit_setup_assistant::ConfigurationFilesWidget::config_data_ [private] |
Contains all the configuration data for the setup assistant.
Definition at line 129 of file configuration_files_widget.h.
Populate the 'Files to be Generated' list just once.
Definition at line 141 of file configuration_files_widget.h.
std::vector<GenerateFile> moveit_setup_assistant::ConfigurationFilesWidget::gen_files_ [private] |
Vector of all files to be generated.
Definition at line 144 of file configuration_files_widget.h.
Has the package been generated yet this program execution? Used for popping up exit warning.
Definition at line 138 of file configuration_files_widget.h.
std::string moveit_setup_assistant::ConfigurationFilesWidget::new_package_name_ [private] |
Name of the new package that is being (or going) to be generated, based on user specified save path.
Definition at line 132 of file configuration_files_widget.h.
Definition at line 94 of file configuration_files_widget.h.
Definition at line 93 of file configuration_files_widget.h.
Definition at line 97 of file configuration_files_widget.h.
Vector of all strings to search for in templates, and their replacements.
Definition at line 147 of file configuration_files_widget.h.