CFx SDK Documentation  2020SP3
FxDesignDataItem.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 #pragma once
18 
19 #include "DDKERNEL.h"
20 #include "FxDatabase.h"
21 #include "FxDesignResourceModel.h"
22 
23 #include <ResBuf.h>
24 
25 #include "FxPragmaPush.h"
26 
27 class CFxRasterImage;
29 
30 class CFxString;
31 class QImage;
32 class QIcon;
33 
35 {
36 public:
41  {
42  ItemIsDragDrop = 1,
43  ItemIsEnable = 2,
44  };
45 
50  {
51  eAddtoFavorites = 1,
52  eRemoveFromFavorites = 2,
53  eSetAsHome = 4,
54  eInsertAsBlock = 8,
55  eAttachAsXref = 16,
56  eOpenInApplication = 32,
57  };
58 
59 public:
60  virtual ~CFxDesignDataItem(void);
61 
66  virtual CFxDesignResourceModel::ItemType Type() const = 0 ;
67 
75  virtual CFxString GetName() const = 0;
76  virtual void SetName(const CFxString&) = 0;
77 
83  virtual void SetTooltip(const CFxString&) = 0;
84 
92  virtual CFxString GetURL() const = 0;
93  virtual void SetURL(const CFxString&) = 0;
94 
100  virtual void SetIconImage( const QIcon& ) = 0;
101  virtual void SetThumbnailImage( const QImage& ) = 0;
102 
110  virtual CFxString GetLink() const = 0;
111  virtual void SetLink(const CFxString&) = 0;
112 
121  virtual void SetProperty( CFxDesignDataItem::ItemProperty, bool bEnable ) = 0;
123 
132  virtual void SetOperationAllowed( CFxDesignDataItem::OperationFlags, bool bAllow ) = 0;
134 
141  virtual void SetDetailColumnData(int iColumn, const OdResBufPtr pData) = 0;
142  virtual void SetDetailColumnData(int iColumn, const OdDbDate pData) = 0;
143 
150  virtual void GetDetailColumnData(int iColumn, OdResBufPtr& pData) const = 0;
151  virtual void GetDetailColumnData(int iColumn, OdDbDate& pData) const = 0;
152 
159  virtual void SetDetailColumnDataPrefix(int iColumn, const CFxString& strPrefix) = 0;
160  virtual void GetDetailColumnDataPrefix(int iColumn, CFxString& strPrefix) const = 0;
161 
168  virtual void SetDetailColumnDataSuffix(int iColumn, const CFxString& strSuffix) = 0;
169  virtual void GetDetailColumnDataSuffix(int iColumn, CFxString& strSuffix) const = 0;
170 
179  virtual void SetCustomData(int identifier, const OdResBufPtr ptrData) = 0;
180  virtual OdResBufPtr GetCustomData( int identifier ) const = 0;
181 
205  virtual CFxDatabasePtr GetDatabase() const = 0;
206 
210  virtual void Refresh() = 0;
211 
219  virtual CFxString GetStatusText() const = 0;
220  virtual void SetStatusText(const CFxString& sStatusText) = 0;
221 
222 protected:
224 
225 
226 };
227 
228 #include "FxPragmaPop.h"
FxPragmaPop.h
CFxDesignDataItem::OperationFlags
OperationFlags
Definition: FxDesignDataItem.h:50
CFxDesignDataItem::SetTooltip
virtual void SetTooltip(const CFxString &)=0
CFxDesignDataItem::SetURL
virtual void SetURL(const CFxString &)=0
CFxDesignDataItem::SetDetailColumnData
virtual void SetDetailColumnData(int iColumn, const OdResBufPtr pData)=0
OdDbDate
Definition: DbDate.h:45
CFxDesignDataItem::SetName
virtual void SetName(const CFxString &)=0
CFxDesignDataItem
Definition: FxDesignDataItem.h:35
FxDesignResourceModel.h
DDKERNEL.h
CFxDesignDataItem::SetDetailColumnDataSuffix
virtual void SetDetailColumnDataSuffix(int iColumn, const CFxString &strSuffix)=0
CFxRasterImage
Definition: FxRasterImage.h:44
CFxDesignResourceModel::ItemType
ItemType
Definition: FxDesignResourceModel.h:33
CFxDesignDataItem::SetCustomData
virtual void SetCustomData(int identifier, const OdResBufPtr ptrData)=0
CFxDesignDataItem::GetDatabase
virtual CFxDatabasePtr GetDatabase() const =0
CFxDesignDataItem::GetDetailColumnDataPrefix
virtual void GetDetailColumnDataPrefix(int iColumn, CFxString &strPrefix) const =0
OdSmartPtr
Definition: SmartPtr.h:58
FxDatabase.h
CFxString
Definition: FxString.h:48
CFxDesignDataItem::~CFxDesignDataItem
virtual ~CFxDesignDataItem(void)
CFxDesignDataItem::CFxDesignDataItem
CFxDesignDataItem(void)
CFxDesignDataItem::SetIconImage
virtual void SetIconImage(const QIcon &)=0
CFxDesignDataItem::SetDetailColumnData
virtual void SetDetailColumnData(int iColumn, const OdDbDate pData)=0
CFxDesignDataItem::IsOperationAllowed
virtual bool IsOperationAllowed(CFxDesignDataItem::OperationFlags) const =0
CFxDesignDataItem::SetLink
virtual void SetLink(const CFxString &)=0
DDKERNEL_API
#define DDKERNEL_API
Definition: DDKERNEL.h:32
CFxRasterImagePtr
OdSmartPtr< CFxRasterImage > CFxRasterImagePtr
Definition: FxDesignDataItem.h:27
CFxDesignDataItem::GetDetailColumnData
virtual void GetDetailColumnData(int iColumn, OdDbDate &pData) const =0
CFxDesignDataItem::SetStatusText
virtual void SetStatusText(const CFxString &sStatusText)=0
CFxDesignDataItem::ItemProperty
ItemProperty
Definition: FxDesignDataItem.h:41
CFxDesignDataItem::GetURL
virtual CFxString GetURL() const =0
CFxDesignDataItem::GetCustomData
virtual OdResBufPtr GetCustomData(int identifier) const =0
CFxDesignDataItem::SetThumbnailImage
virtual void SetThumbnailImage(const QImage &)=0
CFxDesignDataItem::GetStatusText
virtual CFxString GetStatusText() const =0
CFxDesignDataItem::GetDetailColumnDataSuffix
virtual void GetDetailColumnDataSuffix(int iColumn, CFxString &strSuffix) const =0
CFxDesignDataItem::Type
virtual CFxDesignResourceModel::ItemType Type() const =0
CFxDesignDataItem::GetDetailColumnData
virtual void GetDetailColumnData(int iColumn, OdResBufPtr &pData) const =0
CFxDesignDataItem::SetProperty
virtual void SetProperty(CFxDesignDataItem::ItemProperty, bool bEnable)=0
CFxDesignDataItem::GetLink
virtual CFxString GetLink() const =0
CFxDesignDataItem::GetName
virtual CFxString GetName() const =0
CFxDesignDataItem::SetDetailColumnDataPrefix
virtual void SetDetailColumnDataPrefix(int iColumn, const CFxString &strPrefix)=0
FxPragmaPush.h
ResBuf.h
CFxDesignDataItem::SetOperationAllowed
virtual void SetOperationAllowed(CFxDesignDataItem::OperationFlags, bool bAllow)=0
CFxDesignDataItem::IsPropertyEnabled
virtual bool IsPropertyEnabled(CFxDesignDataItem::ItemProperty) const =0
CFxDesignDataItem::Refresh
virtual void Refresh()=0