KDirStat – a graphical disk usage utility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

185 lines
9.8KB

  1. /*
  2. * File name: kdirstatfeedback.cpp
  3. * Summary: User feedback questions for KDirStat
  4. * License: GPL - See file COPYING for details.
  5. *
  6. * Author: Stefan Hundhammer <sh@suse.de>
  7. *
  8. * Updated: 2003-01-07
  9. */
  10. #include <tdelocale.h>
  11. #include "kdirstatapp.h"
  12. #include "kfeedback.h"
  13. void
  14. KDirStatApp::sendFeedbackMail()
  15. {
  16. if ( ! _feedbackDialog )
  17. {
  18. _feedbackDialog = new KFeedbackDialog( "sh@suse.de", "feedback_mail" );
  19. TQ_CHECK_PTR( _feedbackDialog );
  20. connect( _feedbackDialog->form(), TQT_SIGNAL( mailSent() ),
  21. this, TQT_SLOT( feedbackMailSent() ) );
  22. KFeedbackQuestionList * list = _feedbackDialog->form()->questionList();
  23. KFeedbackQuestion * question =
  24. list->addQuestion( i18n( "What is your general opinion about this program?" ), "general_opinion", true, true );
  25. question->addAnswer( i18n( "It's one of my favourites" ), "1/8_favourite" );
  26. question->addAnswer( i18n( "I like it" ), "2/8_like_it" );
  27. question->addAnswer( i18n( "It's sometimes useful" ), "3/8_sometimes_useful" );
  28. question->addAnswer( i18n( "It's average" ), "4/8_average" );
  29. question->addAnswer( i18n( "Nice try, but this could be done better" ), "5/8_nice_try" );
  30. question->addAnswer( i18n( "It's poor" ), "6/8_poor" );
  31. question->addAnswer( i18n( "It's useless" ), "7/8_useless" );
  32. question->addAnswer( i18n( "It's crap" ), "8/8_crap" );
  33. question = list->addQuestion( i18n( "Which features of this program do you like?" ), "features_liked", false );
  34. addFeatureList( question );
  35. question = list->addQuestion( i18n( "Which features don't you like?" ), "features_not_liked", false );
  36. addFeatureList( question );
  37. question = list->addQuestion( i18n( "Which features do you never use?" ), "features_never_used", false );
  38. addFeatureList( question );
  39. question = list->addQuestion( i18n( "What is your favourite feature?" ), "favourite_feature", true );
  40. addFeatureList( question );
  41. question = list->addQuestion( i18n( "Are there features you are missing?" ), "features_missing", true );
  42. question->addAnswer( i18n( "Yes, a lot! (please add comment below)" ), "1/4_lots" );
  43. question->addAnswer( i18n( "Some (please add comment below)" ), "2/4_some" );
  44. question->addAnswer( i18n( "None" ), "3/4_none" );
  45. question->addAnswer( i18n( "It has too many features already!" ), "4/4_too_many_already" );
  46. question = list->addQuestion( i18n( "How do you rate the stability of this program?" ), "stability", true, true );
  47. question->addAnswer( i18n( "Rock solid" ), "1/5_rock_solid" );
  48. question->addAnswer( i18n( "Good" ), "2/5_good" );
  49. question->addAnswer( i18n( "Average" ), "3/5_average" );
  50. question->addAnswer( i18n( "Poor" ), "4/5_poor" );
  51. question->addAnswer( i18n( "It keeps crashing all the time" ), "5/5_keeps_crashing" );
  52. question = list->addQuestion( i18n( "How do you rate the performance of this program?" ), "performance", true );
  53. question->addAnswer( i18n( "Great" ), "1/5_great" );
  54. question->addAnswer( i18n( "Good" ), "2/5_good" );
  55. question->addAnswer( i18n( "Average" ), "3/5_average" );
  56. question->addAnswer( i18n( "Poor" ), "4/5_poor" );
  57. question->addAnswer( i18n( "It's so slow it drives me nuts" ), "5/5_drives_me_nuts" );
  58. question = list->addQuestion( i18n( "What is your experience with computers in general?" ), "computer_experience", true );
  59. question->addAnswer( i18n( "Expert" ), "1/5_expert" );
  60. question->addAnswer( i18n( "Fair" ), "2/5_fair" );
  61. question->addAnswer( i18n( "Average" ), "3/5_average" );
  62. question->addAnswer( i18n( "Learning" ), "4/5_learning" );
  63. question->addAnswer( i18n( "Newbie" ), "5/5_newbie" );
  64. question = list->addQuestion( i18n( "What is your experience with Unix/Linux systems?" ), "unix_experience", true );
  65. question->addAnswer( i18n( "Expert" ), "1/5_expert" );
  66. question->addAnswer( i18n( "Fair" ), "2/5_fair" );
  67. question->addAnswer( i18n( "Average" ), "3/5_average" );
  68. question->addAnswer( i18n( "Learning" ), "4/5_learning" );
  69. question->addAnswer( i18n( "Newbie" ), "5/5_newbie" );
  70. question = list->addQuestion( i18n( "Did you have trouble figuring out how to work with this program in general?" ),
  71. "learning_curve", true, true );
  72. question->addAnswer( i18n( "No problem" ), "1/5_no_problem" );
  73. question->addAnswer( i18n( "Some" ), "2/5_some_problems" );
  74. question->addAnswer( i18n( "I'm still learning" ), "3/5_still_learing" );
  75. question->addAnswer( i18n( "I didn't have a clue what to do at first" ), "4/5_no_clue_at_first" );
  76. question->addAnswer( i18n( "I still don't have a clue what to do" ), "5/5_still_no_clue" );
  77. question = list->addQuestion( i18n( "Where do you use this program most?" ), "usage_where", true );
  78. question->addAnswer( i18n( "At work" ), "at_work" );
  79. question->addAnswer( i18n( "At home" ), "at_home" );
  80. question->addAnswer( i18n( "At university / school" ), "university" );
  81. question = list->addQuestion( i18n( "What is your primary role there?" ), "primary_role", true );
  82. question->addAnswer( i18n( "Home user" ), "home_user" );
  83. question->addAnswer( i18n( "Student" ), "student" );
  84. question->addAnswer( i18n( "Educational (teacher / professor)" ), "educational" );
  85. question->addAnswer( i18n( "Non-computer related work" ), "non_computer" );
  86. question->addAnswer( i18n( "Developer" ), "developer" );
  87. question->addAnswer( i18n( "System administrator" ), "sysadmin" );
  88. question = list->addQuestion( i18n( "Do you have any other roles there?" ), "other_roles", false );
  89. question->addAnswer( i18n( "Home user" ), "home_user" );
  90. question->addAnswer( i18n( "Student" ), "student" );
  91. question->addAnswer( i18n( "Educational (teacher / professor)" ), "educational" );
  92. question->addAnswer( i18n( "Non-computer related work" ), "non_computer" );
  93. question->addAnswer( i18n( "Developer" ), "developer" );
  94. question->addAnswer( i18n( "System administrator" ), "sysadmin" );
  95. question = list->addQuestion( i18n( "How did you get to know this program?" ), "first_contact", true );
  96. question->addAnswer( i18n( "In a menu on my machine" ), "menu" );
  97. question->addAnswer( i18n( "Somebody told me about it" ), "told" );
  98. question->addAnswer( i18n( "On the internet" ), "internet" );
  99. question->addAnswer( i18n( "Printed magazine / book" ), "print_media" );
  100. question->addAnswer( i18n( "Other (please add comment below)" ), "other" );
  101. list->addYesNoQuestion( i18n( "Did you ever get a KDirStat mail report telling you to clean up disk space?" ),
  102. "got_mail_report" );
  103. question = list->addQuestion( i18n( "Could you figure yet out how to work with the treemaps?" ), "learning_treemaps", true );
  104. question->addAnswer( i18n( "I became an expert at it" ), "1/5_expert" );
  105. question->addAnswer( i18n( "I got a fairly good idea of it" ), "2/5_ok" );
  106. question->addAnswer( i18n( "I'm still learning" ), "3/5_still_learing" );
  107. question->addAnswer( i18n( "I still don't have a clue what to do" ), "4/5_no_clue" );
  108. question->addAnswer( i18n( "Treemaps? Huh? What the hell is that?" ), "5/5_say_what" );
  109. question = list->addQuestion( i18n( "What do you think about the treemaps?" ), "treemaps", false );
  110. question->addAnswer( i18n( "They are useless" ), "useless" );
  111. question->addAnswer( i18n( "The display is confusing" ), "display_confusing" );
  112. question->addAnswer( i18n( "They look ugly" ), "look_ugly" );
  113. question->addAnswer( i18n( "They look nice" ), "look_nice" );
  114. question->addAnswer( i18n( "They help finding large files" ), "good_for_large_files" );
  115. question->addAnswer( i18n( "I could do with the treemap view alone" ), "treemaps_alone" );
  116. question->addAnswer( i18n( "The combination of tree view and treemaps is great" ), "like_combined_views");
  117. question->addAnswer( i18n( "I want more info inside the treemap view" ), "more_info" );
  118. question->addAnswer( i18n( "Leave the treemaps as they are right now" ), "leave_like_this" );
  119. list->addYesNoQuestion( i18n( "Would you recommend this program to a friend?" ), "recommend", true );
  120. }
  121. if ( ! _feedbackDialog->isVisible() )
  122. _feedbackDialog->show();
  123. }
  124. void
  125. KDirStatApp::addFeatureList( KFeedbackQuestion * question )
  126. {
  127. question->addAnswer( i18n( "The directory tree display in general" ), "tree_view" );
  128. question->addAnswer( i18n( "Percentage bars as graphical display of relative sizes" ), "percentage_bars" );
  129. question->addAnswer( i18n( "Files apart from directories in a separate <Files> item"), "files_item" );
  130. question->addAnswer( i18n( "Treemaps in general" ), "treemaps" );
  131. question->addAnswer( i18n( "The cushioned treemap rendering" ), "treemap_cushions" );
  132. question->addAnswer( i18n( "Cleanup actions in general" ), "cleanups_general" );
  133. question->addAnswer( i18n( "Predefined cleanup actions" ), "predefined_cleanups" );
  134. question->addAnswer( i18n( "User defined cleanup actions" ), "user_cleanups" );
  135. question->addAnswer( i18n( "Cleanup action configuration" ), "cleanup_config" );
  136. question->addAnswer( i18n( "Different colors in percentage bars" ), "tree_colors" );
  137. question->addAnswer( i18n( "Tree color configuration" ), "tree_color_config" );
  138. question->addAnswer( i18n( "Staying on one file system" ), "stay_on_one_filesys" );
  139. question->addAnswer( i18n( "The \"mail to owner\" facility" ), "mail_to_owner" );
  140. question->addAnswer( i18n( "This \"feedback mail\" facility" ), "feedback" );
  141. question->addAnswer( i18n( "Human readable sizes (kB, MB, ...)" ), "human_readable_sizes" );
  142. question->addAnswer( i18n( "All the numbers in the tree display" ), "numeric_display" );
  143. question->addAnswer( i18n( "Last change time of an entire directory tree" ), "last_change_time" );
  144. question->addAnswer( i18n( "The PacMan animation" ), "pacman" );
  145. }
  146. // EOF