ui: graph view layouting and member rendering
Added simple layouting functions (implementations for simple grid and circle layout). Also the graph displays class members and connections (edges) to or from them "correctly" now. fortune cookie message = Your exotic ideas will lead you to many exciting new adventures.
This commit is contained in:
@@ -13,10 +13,6 @@ y fooy();
|
||||
z fooz();
|
||||
*/
|
||||
|
||||
class A {};
|
||||
class B : public A {};
|
||||
typedef A* C;
|
||||
|
||||
const bool *ab(int a, int b);
|
||||
|
||||
bool const *abc(int a, int b);
|
||||
@@ -27,3 +23,66 @@ int main();
|
||||
void foo();
|
||||
int sum(int a, int b);
|
||||
int diff(int a, int b);
|
||||
|
||||
void funk();
|
||||
|
||||
class A
|
||||
{
|
||||
public:
|
||||
A()
|
||||
: m_importantValue(42)
|
||||
, m_importanterValue('r')
|
||||
, m_importantestValue(3.14159265359f)
|
||||
{
|
||||
}
|
||||
|
||||
~A()
|
||||
{
|
||||
}
|
||||
|
||||
void doImportantStuff()
|
||||
{
|
||||
m_importantValue *= 1;
|
||||
}
|
||||
|
||||
void doModeratelyImportantStuff()
|
||||
{
|
||||
m_importanterValue = 'R';
|
||||
|
||||
sum(21, 21);
|
||||
}
|
||||
|
||||
private:
|
||||
int m_importantValue;
|
||||
char m_importanterValue;
|
||||
float m_importantestValue;
|
||||
};
|
||||
|
||||
class B : public A {};
|
||||
|
||||
class C
|
||||
{
|
||||
public:
|
||||
C()
|
||||
: m_valuable(0)
|
||||
{
|
||||
}
|
||||
|
||||
~C()
|
||||
{
|
||||
}
|
||||
|
||||
void solveAllProblems()
|
||||
{
|
||||
A aInstance;
|
||||
aInstance.doImportantStuff();
|
||||
aInstance.doModeratelyImportantStuff();
|
||||
}
|
||||
|
||||
private:
|
||||
int m_valuable;
|
||||
};
|
||||
|
||||
A globalA;
|
||||
|
||||
typedef A* C;
|
||||
|
||||
@@ -7,6 +7,9 @@ int diff(int a, int b);
|
||||
|
||||
int main()
|
||||
{
|
||||
A aInstance;
|
||||
aInstance.doImportantStuff();
|
||||
|
||||
int a = sum(1, 2);
|
||||
int b = diff(a, 3);
|
||||
int c = a * b;
|
||||
@@ -33,3 +36,9 @@ int diff(int a, int b)
|
||||
{
|
||||
return a - b;
|
||||
}
|
||||
|
||||
void funk()
|
||||
{
|
||||
A aInstance;
|
||||
aInstance.doModeratelyImportantStuff();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user