Skip to content

Commit cdfc62f

Browse files
Updated help feature to point to feature manual. Removed unused add object dialogs
1 parent c342697 commit cdfc62f

18 files changed

Lines changed: 113 additions & 2071 deletions

FEBioLink/FEBioClass.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ FEBioClassInfo FEBio::GetClassInfo(int classId)
366366
ci.classId = classId;
367367
ci.baseClassId = baseClassIndex(fac->GetBaseClassName());
368368
ci.sztype = fac->GetTypeStr();
369-
ci.szmod = fecore.GetModuleName(modId);
369+
ci.szmod = fecore.GetModuleName(modId - 1);
370+
ci.superClassName = FECoreKernel::SuperClassString(fac->GetSuperClassID());
370371
ci.spec = fac->GetSpecID();
371372
ci.allocId = fac->GetAllocatorID();
372373

@@ -438,6 +439,7 @@ std::vector<FEBio::FEBioClassInfo> FEBio::FindAllClasses(int mod, int superId, i
438439
fac->GetTypeStr(),
439440
fac->GetClassName(),
440441
szmod,
442+
FECoreKernel::SuperClassString(fac->GetSuperClassID()),
441443
fac->GetSpecID() };
442444
facs.push_back(febc);
443445
}
@@ -481,6 +483,7 @@ std::vector<FEBio::FEBioClassInfo> FEBio::FindAllClasses(int mod, int superId, i
481483
fac->GetTypeStr(),
482484
fac->GetClassName(),
483485
szmod,
486+
FECoreKernel::SuperClassString(fac->GetSuperClassID()),
484487
fac->GetSpecID() };
485488
facs.push_back(febc);
486489
}
@@ -508,6 +511,7 @@ std::vector<FEBio::FEBioClassInfo> FEBio::FindAllPluginClasses(int allocId)
508511
fac->GetTypeStr(),
509512
fac->GetClassName(),
510513
szmod,
514+
FECoreKernel::SuperClassString(fac->GetSuperClassID()),
511515
fac->GetSpecID()
512516
};
513517
facs.push_back(febc);

FEBioLink/FEBioClass.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ namespace FEBio {
108108
int baseClassId; // base class index
109109
const char* sztype; // the type string
110110
const char* szclass; // the (C++) class name
111+
const char* superClassName; // the super class name
111112
const char* szmod; // the module name
112113
int spec; // spec ID (i.e. FEBio file version)
113114
int allocId; // allocator ID

FEBioStudio/DlgAddPhysicsItem.cpp

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ SOFTWARE.*/
4343
#include <FEBioLink/FEBioClass.h>
4444
#include <FEBioLink/FEBioModule.h>
4545
#include <FSCore/FSCore.h>
46-
#include "HelpUrl.h"
47-
48-
#include <iostream>
4946

5047
using namespace std;
5148

@@ -229,25 +226,18 @@ int CDlgAddPhysicsItem::GetClassID()
229226
return (it ? it->data(0, Qt::UserRole).toInt() : -1);
230227
}
231228

232-
void CDlgAddPhysicsItem::SetURL()
229+
void CDlgAddPhysicsItem::UpdateHelpURL()
233230
{
234231
if(ui->type->selectedItems().size() > 0)
235232
{
236-
237233
int classID = ui->type->currentItem()->data(0, Qt::UserRole).toInt();
238234

239-
const char* typeString = FEBio::GetClassInfo(classID).sztype;
240-
241-
m_url = GetHelpURL(ui->m_superID, typeString);
235+
SetURL(classID);
242236
}
243237
else
244238
{
245-
m_url = UNSELECTED_HELP;
239+
SetURL(-1);
246240
}
247-
248-
// cout << "SUPERID " << ui->m_superID << endl;
249-
250-
// FECoreKernel::GetInstance().List((SUPER_CLASS_ID) ui->m_superID);
251241
}
252242

253243
class UIDlgCopyPhysicsItem

FEBioStudio/DlgAddPhysicsItem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CDlgAddPhysicsItem : public CHelpDialog
4646
void ShowNameAndCategoryFields(bool b);
4747

4848
protected:
49-
void SetURL();
49+
void UpdateHelpURL();
5050

5151
public slots:
5252
void Update();

FEBioStudio/DlgAddRigidConnector.cpp

Lines changed: 0 additions & 181 deletions
This file was deleted.

FEBioStudio/DlgAddRigidConnector.h

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)