-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug(Archicad): Element type names in Archicad 25 (#2740)
Element type names in Archicad 25 Co-authored-by: József L. Kiss <>
- Loading branch information
1 parent
1924735
commit b5bc2a6
Showing
7 changed files
with
283 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "ResourceStrings.hpp" | ||
|
||
#include "ResourceIds.hpp" | ||
|
||
// from GSRoot | ||
#include "RS.hpp" | ||
|
||
//from API | ||
#include "ACAPinc.h" | ||
|
||
|
||
template<class EnumType> | ||
const GS::UniString& TGetStringFromResource (const int& resourceID, const EnumType& resourceItemId) | ||
{ | ||
static GS::HashTable<EnumType, GS::UniString> resourceStringCache; | ||
|
||
if (!resourceStringCache.ContainsKey (resourceItemId)) | ||
resourceStringCache.Add (resourceItemId, RSGetIndString (resourceID, (UInt32) resourceItemId, ACAPI_GetOwnResModule ())); | ||
|
||
return resourceStringCache.Get(resourceItemId); | ||
} | ||
|
||
|
||
const GS::UniString& ResourceStrings::GetElementTypeStringFromResource (const ElementTypeStringItems& resourceItemId) | ||
{ | ||
return TGetStringFromResource<ResourceStrings::ElementTypeStringItems> (ID_ELEMENT_TYPE_STRINGS, resourceItemId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
#ifndef RESOURCE_STRINGS_HPP | ||
#define RESOURCE_STRINGS_HPP | ||
|
||
#include "UniString.hpp" | ||
|
||
|
||
namespace ResourceStrings { | ||
|
||
enum class ElementTypeStringItems { | ||
WallString = 1, | ||
ColumnString, | ||
BeamString, | ||
WindowString, | ||
DoorString, | ||
ObjectString, | ||
LampString, | ||
SlabString, | ||
RoofString, | ||
MeshString, | ||
DimensionString, | ||
RadialDimensionString, | ||
LevelDimensionString, | ||
AngleDimensionString, | ||
TextString, | ||
LabelString, | ||
ZoneString, | ||
HatchString, | ||
LineString, | ||
PolyLineString, | ||
ArcString, | ||
CircleString, | ||
SplineString, | ||
HotspotString, | ||
CutPlaneString, | ||
CameraString, | ||
CamSetString, | ||
GroupString, | ||
SectElemString, | ||
DrawingString, | ||
PictureString, | ||
DetailString, | ||
ElevationString, | ||
InteriorElevationString, | ||
WorksheetString, | ||
HotlinkString, | ||
CurtainWallString, | ||
CurtainWallSegmentString, | ||
CurtainWallFrameString, | ||
CurtainWallPanelString, | ||
CurtainWallJunctionString, | ||
CurtainWallAccessoryString, | ||
ShellString, | ||
SkylightString, | ||
MorphString, | ||
ChangeMarkerString, | ||
StairString, | ||
RiserString, | ||
TreadString, | ||
StairStructureString, | ||
RailingString, | ||
RailingToprailString, | ||
RailingHandrailString, | ||
RailingRailString, | ||
RailingPostString, | ||
RailingInnerPostString, | ||
RailingBalusterString, | ||
RailingPanelString, | ||
RailingSegmentString, | ||
RailingNodeString, | ||
RailingBalusterSetString, | ||
RailingPatternString, | ||
RailingToprailEndString, | ||
RailingHandrailEndString, | ||
RailingRailEndString, | ||
RailingToprailConnectionString, | ||
RailingHandrailConnectionString, | ||
RailingRailConnectionString, | ||
RailingEndFinishString, | ||
AnalyticalSupportString, | ||
AnalyticalLinkString, | ||
BeamSegmentString, | ||
ColumnSegmentString, | ||
OpeningString | ||
}; | ||
|
||
const GS::UniString& GetElementTypeStringFromResource (const ElementTypeStringItems& resourceItemId); | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters