ctkWorkflowTabWidget.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 __ctkWorkflowTabWidget_h
  15. #define __ctkWorkflowTabWidget_h
  16. // Qt includes
  17. class QWidget;
  18. class QString;
  19. // CTK includes
  20. #include "ctkWorkflowAbstractPagedWidget.h"
  21. #include "ctkPimpl.h"
  22. #include "ctkWidgetsExport.h"
  23. class ctkWorkflowTabWidgetPrivate;
  24. /// \ingroup Widgets
  25. ///
  26. /// \brief ctkWorkflowTabWidget is the basis for a workflow with a user
  27. class CTK_WIDGETS_EXPORT ctkWorkflowTabWidget : public ctkWorkflowAbstractPagedWidget
  28. {
  29. Q_OBJECT
  30. public:
  31. typedef ctkWorkflowAbstractPagedWidget Superclass;
  32. explicit ctkWorkflowTabWidget(QWidget* parent = 0);
  33. virtual ~ctkWorkflowTabWidget();
  34. virtual void createNewPage(QWidget* widget);
  35. virtual void showPage(QWidget* widget, const QString& label);
  36. virtual void initClientArea();
  37. virtual QWidget* clientArea();
  38. protected:
  39. QScopedPointer<ctkWorkflowTabWidgetPrivate> d_ptr;
  40. private:
  41. Q_DECLARE_PRIVATE(ctkWorkflowTabWidget);
  42. Q_DISABLE_COPY(ctkWorkflowTabWidget);
  43. };
  44. #endif