MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
preferencesPage.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 #include <lgrGui/lgrGui.h>
12 #include <QWidget>
13 #include <QIcon>
14 
15 namespace MAKLogger
16 {
17 
20  class DT_DLL_LGRGUI DtPage : public QWidget
21  {
22  public:
26  DtPage(QWidget* parent = 0, Qt::WindowFlags f = 0);
27 
29  virtual ~DtPage();
30 
32  virtual QIcon icon() = 0;
33 
36  virtual DtQIconConfigurations qIconConfigurations() const = 0;
37 
39  virtual QString title() = 0;
40 
42  virtual const std::string& pageClassName() const = 0;
43 
45  virtual void load() = 0;
46 
48  virtual void accept() = 0;
49 
51  virtual void reject() = 0;
52 
53  protected:
54 
56 
58  virtual void activate() = 0;
59 
61  virtual void deactivate() = 0;
62 
64  void addPageHeader(const QString& title, QLayout* layout);
65 
66  };
67 
71  {
72  public:
74  DtPageCreator();
75 
77  virtual ~DtPageCreator();
78 
82  virtual std::string pageClassName() const = 0;
83 
85  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0) = 0;
86 
87 
88  };
89 
90 
93  template <typename PageClass>
95  {
96  public:
97 
100  {
101  }
102 
105  {
106  }
107 
110  virtual std::string pageClassName() const
111  {
112  return PageClass::thePageClassName();
113  }
114 
116  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0)
117  {
118  return new PageClass(parent, f);
119  }
120  };
121 }
122 
virtual DtPage * create(QWidget *parent=0, Qt::WindowFlags f=0)
Simple implementation of the create call to make a PageClass.
Definition: preferencesPage.h:116
The DtPreferencesPageCollection is an abstract class which implements the page collection interface...
Definition: preferencesPageCollection.h:22
The page is a single widget component which is viewed in a page collection.
Definition: preferencesPage.h:20
Contains MAKLogger::DtLgrWidgetIconStyleManager class.
A generic creator template that most page creators can be implemented with.
Definition: preferencesPage.h:94
Definition: lgrWidgetIconStyleManager.h:41
virtual ~DtPageCreatorTemplate()
Virtual DTOR allows subclasses to clean up resources.
Definition: preferencesPage.h:104
#define DT_DLL_LGRGUI
Definition: lgrGui.h:19
Defines INPORT/EXPORT macros for lgrGui library.
virtual std::string pageClassName() const
get the name of the PageClass.
Definition: preferencesPage.h:110
DtPageCreatorTemplate()
CTOR takes a reference to the DtDe object.
Definition: preferencesPage.h:99
The page creator.
Definition: preferencesPage.h:70

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)