CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxDesignResourceModel.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 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
21#include "FxPragmaPush.h"
22
23class CFxString;
25
27{
28public:
33 {
35 eRootItem = 0, //This type of item can be added as root only or under Favorite node. Add to favorites and Set As Home not allowed.
36 eShortCutItem, //eShortCutItem not displayed in Source view.
38 eDrawingItem , //No sub item can be added under this type of item using AppendChild
39 eImageItem , //No sub item can be added under this type of item using AppendChild.
40 eLinkItem , //This type of item can be added under only Favorites node using AppendChild. Add To Favorites not allowed
42
43 /* Following type of items created and added internally. */
63 };
64
83
105
116
117public:
119
136 virtual CFxDesignDataItem* CreateItem( const CFxString& sText,
138 bool bExpandable = true ) const = 0;
139
140
149 virtual CFxDesignDataItem* ItemAt( CFxDesignDataItem* pParent, int iIndex ) const = 0;
150
159 virtual bool AppendChild( CFxDesignDataItem* pParent, CFxDesignDataItem* pChild ) = 0;
160
168 virtual int GetChildCount( const CFxDesignDataItem* pItem ) const = 0;
169
177 virtual bool RemoveAllChildren(CFxDesignDataItem* pParent) = 0;
178
184 virtual bool RemoveItem( CFxDesignDataItem* pItem ) = 0;
185
193 virtual CFxDesignDataItem* GetParentItem( const CFxDesignDataItem* pItem ) const = 0;
194
200 virtual bool IsDrawingSubItem(CFxString& sURL) = 0;
201
210 virtual bool RemoveDatabaseFromCache(const CFxString& sURL) = 0;
211
216
222 virtual void ExploreItem( CFxDesignDataItem* pItem ) = 0;
223
224protected:
226
227};
228
229#include "FxPragmaPop.h"
#define DDKERNEL_API
Definition DDKERNEL.h:32
virtual bool IsDrawingSubItem(CFxString &sURL)=0
virtual void ExploreItem(CFxDesignDataItem *pItem)=0
virtual bool RemoveItem(CFxDesignDataItem *pItem)=0
virtual CFxDesignDataItem * GetExploredItem()=0
virtual bool AppendChild(CFxDesignDataItem *pParent, CFxDesignDataItem *pChild)=0
virtual bool RemoveAllChildren(CFxDesignDataItem *pParent)=0
virtual bool RemoveDatabaseFromCache(const CFxString &sURL)=0
virtual CFxDesignDataItem * GetParentItem(const CFxDesignDataItem *pItem) const =0
virtual CFxDesignDataItem * CreateItem(const CFxString &sText, CFxDesignResourceModel::ItemType type, bool bExpandable=true) const =0
virtual ~CFxDesignResourceModel(void)
virtual int GetChildCount(const CFxDesignDataItem *pItem) const =0
virtual CFxDesignDataItem * ItemAt(CFxDesignDataItem *pParent, int iIndex) const =0
GLuint GLsizei GLsizei GLint GLenum * type
Definition gles2_ext.h:274