Refactoring

- Combined the remains of command.cpp and report.cpp into helpers.cpp.
This commit is contained in:
Paul Beckingham 2011-05-30 16:01:04 -04:00
parent a2da93b681
commit 6f17e80461
4 changed files with 149 additions and 191 deletions

View file

@ -49,7 +49,11 @@ void updateRecurrenceMask (std::vector <Task>&, Task&);
int getDueState (const std::string&);
bool nag (Task&);
// command.cpp
// helpers.cpp
std::string getFullDescription (Task&, const std::string&);
std::string getDueDate (Task&, const std::string&);
std::string onProjectChange (Task&, bool scope = true);
std::string onProjectChange (Task&, Task&);
int deltaAppend (Task&);
int deltaPrepend (Task&);
int deltaDescription (Task&);
@ -57,17 +61,6 @@ int deltaTags (Task&);
int deltaAttributes (Task&);
int deltaSubstitutions (Task&);
// report.cpp
std::string getFullDescription (Task&, const std::string&);
std::string getDueDate (Task&, const std::string&);
std::string onProjectChange (Task&, bool scope = true);
std::string onProjectChange (Task&, Task&);
// burndown.cpp
int handleReportBurndownDaily (std::string&);
int handleReportBurndownWeekly (std::string&);
int handleReportBurndownMonthly (std::string&);
// rules.cpp
void initializeColorRules ();
void autoColorize (Task&, Color&);