aboutsummaryrefslogtreecommitdiff
path: root/dw/table.hh
diff options
context:
space:
mode:
Diffstat (limited to 'dw/table.hh')
-rw-r--r--dw/table.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/dw/table.hh b/dw/table.hh
index 96769f40..109bbf30 100644
--- a/dw/table.hh
+++ b/dw/table.hh
@@ -322,7 +322,6 @@ namespace dw {
class Table: public core::Widget
{
private:
-
struct Child
{
enum {
@@ -361,6 +360,8 @@ private:
friend class TableIterator;
+ static bool adjustTableMinWidth;
+
bool limitTextWidth, rowClosed;
int numRows, numCols, curRow, curCol;
@@ -463,6 +464,8 @@ protected:
void sizeAllocateImpl (core::Allocation *allocation);
void resizeDrawImpl ();
+ bool getAdjustMinWidth () { return Table::adjustTableMinWidth; }
+
int getAvailWidthOfChild (Widget *child, bool forceValue);
void correctRequisitionOfChild (core::Widget *child,
core::Requisition *requisition,
@@ -485,6 +488,9 @@ protected:
public:
static int CLASS_ID;
+ inline static void setAdjustTableMinWidth (bool adjustTableMinWidth)
+ { Table::adjustTableMinWidth = adjustTableMinWidth; }
+
Table(bool limitTextWidth);
~Table();