CFx SDK Documentation  2023 SP0
FxDesignDataItem.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2022 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"
#define DDKERNEL_API
Definition: DDKERNEL.h:32
OdSmartPtr< CFxRasterImage > CFxRasterImagePtr
virtual void SetIconImage(const QIcon &)=0
virtual void SetCustomData(int identifier, const OdResBufPtr ptrData)=0
virtual bool IsPropertyEnabled(CFxDesignDataItem::ItemProperty) const =0
virtual void GetDetailColumnData(int iColumn, OdDbDate &pData) const =0
virtual void SetThumbnailImage(const QImage &)=0
virtual CFxDatabasePtr GetDatabase() const =0
virtual void SetDetailColumnDataPrefix(int iColumn, const CFxString &strPrefix)=0
virtual CFxString GetStatusText() const =0
virtual void SetProperty(CFxDesignDataItem::ItemProperty, bool bEnable)=0
virtual OdResBufPtr GetCustomData(int identifier) const =0
virtual void SetDetailColumnData(int iColumn, const OdDbDate pData)=0
virtual void SetOperationAllowed(CFxDesignDataItem::OperationFlags, bool bAllow)=0
virtual void SetName(const CFxString &)=0
virtual ~CFxDesignDataItem(void)
virtual CFxString GetName() const =0
virtual CFxDesignResourceModel::ItemType Type() const =0
virtual void SetDetailColumnData(int iColumn, const OdResBufPtr pData)=0
virtual void SetStatusText(const CFxString &sStatusText)=0
virtual void SetURL(const CFxString &)=0
virtual void Refresh()=0
virtual void GetDetailColumnDataSuffix(int iColumn, CFxString &strSuffix) const =0
virtual void GetDetailColumnData(int iColumn, OdResBufPtr &pData) const =0
virtual CFxString GetURL() const =0
virtual CFxString GetLink() const =0
virtual void SetTooltip(const CFxString &)=0
virtual void GetDetailColumnDataPrefix(int iColumn, CFxString &strPrefix) const =0
virtual void SetDetailColumnDataSuffix(int iColumn, const CFxString &strSuffix)=0
virtual void SetLink(const CFxString &)=0
virtual bool IsOperationAllowed(CFxDesignDataItem::OperationFlags) const =0