CFx SDK Documentation
2023 SP0
|
#include <FxDesignDataSource.h>
Public Types | |
enum | Result { eOk = 0 , eFail , eNotImplemented } |
Description: This interface has to be implemented by the user to create their own Design Resource. /sa CFxDsignResources::AddSource
Definition at line 34 of file FxDesignDataSource.h.
Description: Return type results.
Enumerator | |
---|---|
eOk | |
eFail | |
eNotImplemented |
Definition at line 40 of file FxDesignDataSource.h.
CFxDesignDataSource::CFxDesignDataSource | ( | ) |
|
virtual |
|
pure virtual |
Description: Implementation will add all sub-items or child items of given parent item. Arguments:
CFxDesignDataItem* | parent item if NULL then it add Root items. Return Value: |
|
pure virtual |
Description: Notification for Add/Remove favorites item. Arguments:
CFxDesignDataItem* | Item that will add/remove to favorites. Return Value: |
|
pure virtual |
Description: Implementation has to provide UI to select URL within the Data Source Hierarchy. Arguments:
CFxString | Selected URL. Return Value: true if it succeeds, false if it fails. |
|
pure virtual |
Description: Implementation returns array of detail view columns to make it visible in detail view, according to specified item type. Arguments:
CFxDesignResourceModel::ItemType | Item type. |
OdIntArray | Returns array of columns. |
|
virtual |
Description: Implementation of these functions required only if client want to customize Copy/Paste and Drag/Drop operation. Framework will invoke Copy function on start of drag or copy operation. Implementation of Copy function will copy Binary chunk into data using information from pItem. Framework will invoke Paste function whenever pItem is pasted or dropped into Drawing Graphic Area with copied information. Implementation of Paste will perform paste operation on copied information. Arguments:
CFxDesignDataItem | * Specified item node. |
OdBinaryData | Data used in copy/paste operation. |
Return Value: Return eOK if handled properly.Default implementation returns eNotImplemented.
|
pure virtual |
Description: Implementation returns drawing sub item visibility.So sub-items under CFxDesignResourceModel::eDrawingItem node will be added automatically. It will be combination of CFxDesignResourceModel::DrawignSubItemVisibilty
|
pure virtual |
Description: Implementation will perform search of given URL and returns item in Data Source structure Hierarchy. Arguments:
CFxString | Return URL Location string Return Value: null if location not found, else the found item. |
|
pure virtual |
Description: Returns Column count of detail view.
|
pure virtual |
Description: Implementation provides column name and its DataType for specified column. Arguments:
int | Column number for which information required. |
CFxString | Returns Column Display name. |
CFxDesignResourceModel::DataType | Returns column contents data type. Return Value: |
|
pure virtual |
Description: Implementation will returns home location URL.
CFxDesignResourceModel* CFxDesignDataSource::GetModel | ( | ) | const |
|
pure virtual |
Description: If return true then One Favorites node will be added below all root nodes to support favorites, else all favorites support will be disabled. If favorites supported then only following sub item types can be added in Favorites Root Node by CFxDesignResourceModel::AppendChild.
CFxString | If Favorites support required then implementer must give Favorite Name so that Favorites node can be created by sFavoriteName name. |
|
pure virtual |
Description: Returns true if specified URL represents file on local disk or local network. Arguments:
CFxString | URL path. |
|
pure virtual |
Description: Implementation returns true if sub items of the specified node item required refilling. If It will return true then system will remove all existing sub items and will call AddChildren. Arguments:
CFxDesignDataItem | * Specified item node. |
|
pure virtual |
Description: Implementation will Load URL drawing/database path. Arguments:
CFxString | URL string for drawing file or database path. |
bool | If set true then loaded database will be cached for further use. Use CFxDesignResourceModel::RemoveDatabaseFromCache to remove this database from cache when needed. |
Return Value: Database if loaded successfully.
Description: Open Drawing URL path. Arguments:
CFxString | Drawing URL path. Return Value: |
|
virtual |
|
pure virtual |
Description: Implementation will perform custom handling of operation of context menu if required. Arguments:
CFxDesignResourceModel::Operation | Operation type. |
CFxDesignDataItem* | Item at which operation will be performed. Return Value: return true to override default behavior of specified operation else false. |
|
pure virtual |
|
pure virtual |
Description: Notify that specified item is Set as Home Location. Arguments:
CFxDesignDataItem* | Item that will set as home location. Return Value: |
void CFxDesignDataSource::SetModel | ( | CFxDesignResourceModel * | pBaseModel | ) |
Description: Set/Get model pointer. Arguments:
CFxDesignResourceModel* | Design Resource model pointer. |
|
pure virtual |
Description: Implementation checks validity of specified URL. Arguments:
CFxString | URL string to check. |
bCorrection | true to correct input URL if it is not valid Return Value: true if URL is valid else false. |