cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cmnLoggerQtWidget.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Anton Deguet
7  Created on: 2010-03-20
8 
9  (C) Copyright 2010 Johns Hopkins University (JHU), All Rights Reserved.
10 
11 --- begin cisst license - do not edit ---
12 
13 This software is provided "as is" under an open source license, with
14 no warranty. The complete license can be found in license.txt and
15 http://www.cisst.org/cisst/license.txt.
16 
17 --- end cisst license ---
18 */
19 
20 #pragma once
21 
22 #ifndef _cmnLoggerQtWidget_h
23 #define _cmnLoggerQtWidget_h
24 
26 
27 // forward declarations
28 class QWidget;
29 class QLabel;
30 class QHBoxLayout;
31 class QVBoxLayout;
32 class QTableView;
33 
34 class cmnLoggerQtWidgetClassServicesModel;
35 class cmnLoggerQtWidgetLoDDelegate;
36 
37 // Always include last
39 
41 {
43 
44  public:
45 
46  cmnLoggerQtWidget(QWidget * parent);
47 
48  inline QWidget * GetWidget(void) {
49  return this->Widget;
50  }
51 
52  protected:
53  // overall widget/layout
54  QWidget * Widget;
55  QVBoxLayout * Layout;
56 
57  // main filter widget/layout and buttons
58  QWidget * MainFilterWidget;
59  QHBoxLayout * MainFilterLayout;
60  QLabel * MainFilterLabel;
61  QLabel * MainFilterData;
62 
63  // filter per class
64  cmnLoggerQtWidgetClassServicesModel * Model;
65  cmnLoggerQtWidgetLoDDelegate * Delegate;
66  QTableView * View;
67 };
68 
70 
71 #endif // _cmnLoggerQtWidget_h
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
CMN_DECLARE_SERVICES_INSTANTIATION(cmnLoggerQtWidget)
QWidget * GetWidget(void)
Definition: cmnLoggerQtWidget.h:48
QVBoxLayout * Layout
Definition: cmnLoggerQtWidget.h:55
Base class for high level objects.
Definition: cmnGenericObject.h:51
QHBoxLayout * MainFilterLayout
Definition: cmnLoggerQtWidget.h:59
cmnLoggerQtWidgetLoDDelegate * Delegate
Definition: cmnLoggerQtWidget.h:65
QWidget * Widget
Definition: cmnLoggerQtWidget.h:54
QLabel * MainFilterData
Definition: cmnLoggerQtWidget.h:61
QTableView * View
Definition: cmnLoggerQtWidget.h:66
QWidget * MainFilterWidget
Definition: cmnLoggerQtWidget.h:58
QLabel * MainFilterLabel
Definition: cmnLoggerQtWidget.h:60
Defines cmnGenericObject.
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
Definition: cmnLoggerQtWidget.h:40
Macros to export the symbols of cisstCommonQt (in a Dll).
cmnLoggerQtWidgetClassServicesModel * Model
Definition: cmnLoggerQtWidget.h:64
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76