ctkWorkflowAbstractWidgetStep_p.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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.commontk.org/LICENSE
  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 __ctkWorkflowAbstractWidgetStep_p_h
  15. #define __ctkWorkflowAbstractWidgetStep_p_h
  16. // Qt includes
  17. #include <QObject>
  18. #include <QList>
  19. #include <QIcon>
  20. class QWidget;
  21. // CTK includes
  22. #include "ctkWorkflowAbstractWidgetStep.h"
  23. #include "ctkWorkflowStep_p.h"
  24. //class ctkWorkflowButtonBoxWidget;
  25. //-----------------------------------------------------------------------------
  26. class ctkWorkflowAbstractWidgetStepPrivate : public ctkWorkflowStepPrivate
  27. {
  28. Q_OBJECT
  29. Q_DECLARE_PUBLIC(ctkWorkflowAbstractWidgetStep);
  30. protected:
  31. ctkWorkflowAbstractWidgetStep* q_ptr;
  32. public:
  33. ctkWorkflowAbstractWidgetStepPrivate(ctkWorkflowAbstractWidgetStep& object);
  34. ~ctkWorkflowAbstractWidgetStepPrivate(){}
  35. typedef ctkWorkflowStepPrivate Superclass;
  36. protected:
  37. QList<ctkWorkflowStep*> finishStepsToHaveButtonsInStepArea;
  38. // int hasPopulateStepWidgetsListCommand;
  39. bool hasShowUserInterfaceCommand;
  40. bool hasCreateUserInterfaceCommand;
  41. // names for the buttons
  42. QString backButtonText;
  43. QString nextButtonText;
  44. ctkWorkflowAbstractWidgetStep::ButtonBoxHints ButtonBoxHints;
  45. QIcon icon;
  46. bool created;
  47. void invokeShowUserInterfaceCommandInternal()const;
  48. void showUserInterfaceCompleteInternal()const;
  49. void invokeCreateUserInterfaceCommandInternal()const;
  50. void createUserInterfaceCompleteInternal()const;
  51. protected slots:
  52. ///
  53. /// Calls corresponding function in public implementation
  54. virtual void showUserInterface();
  55. signals:
  56. void invokeShowUserInterfaceCommand()const;
  57. void showUserInterfaceComplete()const;
  58. void invokeCreateUserInterfaceCommand()const;
  59. void createUserInterfaceComplete()const;
  60. };
  61. #endif