Fixed typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33899 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,10 +9,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark - DelagateBasedTableColumn
|
// #pragma mark - DelegateBasedTableColumn
|
||||||
|
|
||||||
|
|
||||||
DelagateBasedTableColumn::DelagateBasedTableColumn(BColumn* columnDelegate,
|
DelegateBasedTableColumn::DelegateBasedTableColumn(BColumn* columnDelegate,
|
||||||
int32 modelIndex, float width, float minWidth, float maxWidth,
|
int32 modelIndex, float width, float minWidth, float maxWidth,
|
||||||
alignment align)
|
alignment align)
|
||||||
:
|
:
|
||||||
@@ -22,27 +22,27 @@ DelagateBasedTableColumn::DelagateBasedTableColumn(BColumn* columnDelegate,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
DelagateBasedTableColumn::~DelagateBasedTableColumn()
|
DelegateBasedTableColumn::~DelegateBasedTableColumn()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
DelagateBasedTableColumn::DrawTitle(BRect rect, BView* targetView)
|
DelegateBasedTableColumn::DrawTitle(BRect rect, BView* targetView)
|
||||||
{
|
{
|
||||||
fColumnDelegate->DrawTitle(rect, targetView);
|
fColumnDelegate->DrawTitle(rect, targetView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
DelagateBasedTableColumn::GetColumnName(BString* into) const
|
DelegateBasedTableColumn::GetColumnName(BString* into) const
|
||||||
{
|
{
|
||||||
fColumnDelegate->GetColumnName(into);
|
fColumnDelegate->GetColumnName(into);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
DelagateBasedTableColumn::DrawValue(const BVariant& value, BRect rect,
|
DelegateBasedTableColumn::DrawValue(const BVariant& value, BRect rect,
|
||||||
BView* targetView)
|
BView* targetView)
|
||||||
{
|
{
|
||||||
fColumnDelegate->DrawField(PrepareField(value), rect, targetView);
|
fColumnDelegate->DrawField(PrepareField(value), rect, targetView);
|
||||||
@@ -50,7 +50,7 @@ DelagateBasedTableColumn::DrawValue(const BVariant& value, BRect rect,
|
|||||||
|
|
||||||
|
|
||||||
float
|
float
|
||||||
DelagateBasedTableColumn::GetPreferredWidth(const BVariant& value,
|
DelegateBasedTableColumn::GetPreferredWidth(const BVariant& value,
|
||||||
BView* parent) const
|
BView* parent) const
|
||||||
{
|
{
|
||||||
return fColumnDelegate->GetPreferredWidth(PrepareField(value), parent);
|
return fColumnDelegate->GetPreferredWidth(PrepareField(value), parent);
|
||||||
@@ -64,7 +64,7 @@ StringTableColumn::StringTableColumn(int32 modelIndex, const char* title,
|
|||||||
float width, float minWidth, float maxWidth, uint32 truncate,
|
float width, float minWidth, float maxWidth, uint32 truncate,
|
||||||
alignment align)
|
alignment align)
|
||||||
:
|
:
|
||||||
DelagateBasedTableColumn(&fColumn, modelIndex, width, minWidth, maxWidth,
|
DelegateBasedTableColumn(&fColumn, modelIndex, width, minWidth, maxWidth,
|
||||||
align),
|
align),
|
||||||
fColumn(title, width, minWidth, maxWidth, truncate, align),
|
fColumn(title, width, minWidth, maxWidth, truncate, align),
|
||||||
fField("")
|
fField("")
|
||||||
|
|||||||
@@ -11,14 +11,14 @@
|
|||||||
#include "table/TableColumn.h"
|
#include "table/TableColumn.h"
|
||||||
|
|
||||||
|
|
||||||
class DelagateBasedTableColumn : public TableColumn {
|
class DelegateBasedTableColumn : public TableColumn {
|
||||||
public:
|
public:
|
||||||
DelagateBasedTableColumn(
|
DelegateBasedTableColumn(
|
||||||
BColumn* columnDelegate,
|
BColumn* columnDelegate,
|
||||||
int32 modelIndex, float width,
|
int32 modelIndex, float width,
|
||||||
float minWidth, float maxWidth,
|
float minWidth, float maxWidth,
|
||||||
alignment align);
|
alignment align);
|
||||||
virtual ~DelagateBasedTableColumn();
|
virtual ~DelegateBasedTableColumn();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void DrawTitle(BRect rect, BView* targetView);
|
virtual void DrawTitle(BRect rect, BView* targetView);
|
||||||
@@ -36,7 +36,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class StringTableColumn : public DelagateBasedTableColumn {
|
class StringTableColumn : public DelegateBasedTableColumn {
|
||||||
public:
|
public:
|
||||||
StringTableColumn(int32 modelIndex,
|
StringTableColumn(int32 modelIndex,
|
||||||
const char* title, float width,
|
const char* title, float width,
|
||||||
@@ -51,7 +51,7 @@ protected:
|
|||||||
virtual int CompareValues(const BVariant& a,
|
virtual int CompareValues(const BVariant& a,
|
||||||
const BVariant& b);
|
const BVariant& b);
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
BStringColumn fColumn;
|
BStringColumn fColumn;
|
||||||
mutable BStringField fField;
|
mutable BStringField fField;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user