summaryrefslogtreecommitdiff
path: root/dw/table.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-07-21 22:22:54 +0200
committerSebastian Geerken <devnull@localhost>2014-07-21 22:22:54 +0200
commit0a6fc284229b0fa4bb567ad26d76bff01a62a01b (patch)
treeb3f848b4036cd48fd6dd91fd7887aa2b09432199 /dw/table.hh
parent26e47e9cef47b3e65087c88a303666e5a81b49b1 (diff)
New dillorc option adjust_table_min_width.
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();