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)
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< 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 75 of file configuration_files_widget.h.


Constructor & Destructor Documentation

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

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.

Verify with user if certain screens have not been completed.

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

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 895 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 949 of file configuration_files_widget.cpp.

Quit the program because we are done.

Definition at line 768 of file configuration_files_widget.cpp.

Recieved when this widget is chosen from the navigation menu.

Reimplemented from SetupScreenWidget.

Definition at line 512 of file configuration_files_widget.cpp.

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.

Populate the 'Files to be generated' list.

Definition at line 174 of file configuration_files_widget.cpp.

Load the strings that will be replaced in all templates.

Returns:
void

Definition at line 834 of file configuration_files_widget.cpp.

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

Definition at line 805 of file configuration_files_widget.cpp.

Save package click event.

Definition at line 639 of file configuration_files_widget.cpp.

Show the list of files to be generated.

Definition at line 592 of file configuration_files_widget.cpp.

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

Definition at line 471 of file configuration_files_widget.cpp.


Member Data Documentation

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.

Track progress.

Definition at line 135 of file configuration_files_widget.h.

Definition at line 92 of file configuration_files_widget.h.

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.

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.

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.


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


moveit_setup_assistant
Author(s): Dave Coleman
autogenerated on Mon Oct 6 2014 02:32:27