ctkWorkflowWidgetStep_p.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) Kitware Inc.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0.txt
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. =========================================================================*/
  14. #ifndef __ctkWorkflowWidgetStep_p_h
  15. #define __ctkWorkflowWidgetStep_p_h
  16. // Qt includes
  17. #include <QObject>
  18. #include <QList>
  19. #include <QIcon>
  20. // CTK includes
  21. #include "ctkWorkflowWidgetStep.h"
  22. #include "ctkWorkflowStep_p.h"
  23. //-----------------------------------------------------------------------------
  24. /// \ingroup Widgets
  25. class ctkWorkflowWidgetStepPrivate : public ctkWorkflowStepPrivate
  26. {
  27. Q_OBJECT
  28. Q_DECLARE_PUBLIC(ctkWorkflowWidgetStep);
  29. protected:
  30. ctkWorkflowWidgetStep* q_ptr;
  31. public:
  32. ctkWorkflowWidgetStepPrivate(ctkWorkflowWidgetStep& object);
  33. ~ctkWorkflowWidgetStepPrivate();
  34. typedef ctkWorkflowStepPrivate Superclass;
  35. protected:
  36. QList<ctkWorkflowStep*> finishStepsToHaveButtonsInStepArea;
  37. // int hasPopulateStepWidgetsListCommand;
  38. bool hasShowUserInterfaceCommand;
  39. bool hasCreateUserInterfaceCommand;
  40. // names for the buttons
  41. QString backButtonText;
  42. QString nextButtonText;
  43. ctkWorkflowWidgetStep::ButtonBoxHints ButtonBoxHints;
  44. QIcon icon;
  45. bool created;
  46. void invokeShowUserInterfaceCommandInternal()const;
  47. void showUserInterfaceCompleteInternal()const;
  48. void invokeCreateUserInterfaceCommandInternal()const;
  49. void createUserInterfaceCompleteInternal()const;
  50. protected Q_SLOTS:
  51. ///
  52. /// Calls corresponding function in public implementation
  53. virtual void showUserInterface();
  54. Q_SIGNALS:
  55. void invokeShowUserInterfaceCommand()const;
  56. void showUserInterfaceComplete()const;
  57. void invokeCreateUserInterfaceCommand()const;
  58. void createUserInterfaceComplete()const;
  59. };
  60. #endif