Public Member Functions | Public Attributes | Private Slots | Private Member Functions | Private Attributes
moveit_setup_assistant::ConfigurationFilesWidget Class Reference

#include <configuration_files_widget.h>

Inheritance diagram for moveit_setup_assistant::ConfigurationFilesWidget:
Inheritance graph
[legend]

List of all members.

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_
LoadPathWidgetstack_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)
bool 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< GenerateFilegen_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.

Detailed Description

Definition at line 76 of file configuration_files_widget.h.


Constructor & Destructor Documentation

moveit_setup_assistant::ConfigurationFilesWidget::ConfigurationFilesWidget ( QWidget *  parent,
moveit_setup_assistant::MoveItConfigDataPtr  config_data 
)

Definition at line 65 of file configuration_files_widget.cpp.


Member Function Documentation

bool moveit_setup_assistant::ConfigurationFilesWidget::addTemplateString ( const std::string &  key,
const std::string &  value 
) [private]

Insert a string pair into the template_strings_ datastructure.

Parameters:
keystring to search in template
valuestring to replace with
Returns:
void

Definition at line 1049 of file configuration_files_widget.cpp.

Display the selected action in the desc box.

Definition at line 608 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 621 of file configuration_files_widget.cpp.

Verify with user if certain screens have not been completed.

Definition at line 503 of file configuration_files_widget.cpp.

Check the list of files to be generated for modification Returns true if files were detected as modified

Definition at line 684 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

Parameters:
template_pathpath to template file
output_pathdesired path to copy to
new_package_namename of the new package being created, to replace key word in template
Returns:
bool if the template was copied correctly

Definition at line 1059 of file configuration_files_widget.cpp.

bool moveit_setup_assistant::ConfigurationFilesWidget::createFolder ( const std::string &  output_path) [private]

Create a folder.

Parameters:
output_pathname of folder relative to package
Returns:
bool if success

Definition at line 1113 of file configuration_files_widget.cpp.

Quit the program because we are done.

Definition at line 922 of file configuration_files_widget.cpp.

Recieved when this widget is chosen from the navigation menu.

Reimplemented from SetupScreenWidget.

Definition at line 639 of file configuration_files_widget.cpp.

Generate the package.

Definition at line 816 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 936 of file configuration_files_widget.cpp.

Populate the 'Files to be generated' list.

Definition at line 175 of file configuration_files_widget.cpp.

Load the strings that will be replaced in all templates.

Returns:
void

Definition at line 992 of file configuration_files_widget.cpp.

Check that no group is empty (without links/joints/etc)

Definition at line 960 of file configuration_files_widget.cpp.

Save package click event.

Definition at line 792 of file configuration_files_widget.cpp.

Show the list of files to be generated.

Definition at line 741 of file configuration_files_widget.cpp.

A function for showing progress and user feedback about what happened.

Definition at line 594 of file configuration_files_widget.cpp.


Member Data Documentation

Definition at line 99 of file configuration_files_widget.h.

Definition at line 97 of file configuration_files_widget.h.

Definition at line 96 of file configuration_files_widget.h.

Track progress.

Definition at line 134 of file configuration_files_widget.h.

Definition at line 93 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 128 of file configuration_files_widget.h.

Populate the 'Files to be Generated' list just once.

Definition at line 140 of file configuration_files_widget.h.

Vector of all files to be generated.

Definition at line 143 of file configuration_files_widget.h.

Has the package been generated yet this program execution? Used for popping up exit warning.

Definition at line 137 of file configuration_files_widget.h.

Name of the new package that is being (or going) to be generated, based on user specified save path.

Definition at line 131 of file configuration_files_widget.h.

Definition at line 95 of file configuration_files_widget.h.

Definition at line 94 of file configuration_files_widget.h.

Definition at line 98 of file configuration_files_widget.h.

Vector of all strings to search for in templates, and their replacements.

Definition at line 146 of file configuration_files_widget.h.


The documentation for this class was generated from the following files:


moveit_setup_assistant
Author(s): Dave Coleman
autogenerated on Mon Jul 24 2017 02:22:30