view dw/tablecell.hh @ 2104:3e7e5395f0bc

non-ASCII keybindings Alexander Voigt has kindly done some testing, and it seems that this makes bindings to most keys on a German keyboard possible -- except those that need AltGr don't work yet.
author corvid <corvid@lavabit.com>
date Thu, 23 Jun 2011 19:24:11 +0000
parents e5955ab8dafb
children
line wrap: on
line source
#ifndef __DW_TABLECELL_HH__
#define __DW_TABLECELL_HH__

#include "core.hh"
#include "alignedtextblock.hh"

namespace dw {

class TableCell: public AlignedTextblock
{
private:
   int charWordIndex, charWordPos;

protected:
   void wordWrap(int wordIndex);

   int getValue ();
   void setMaxValue (int maxValue, int value);

public:
   static int CLASS_ID;

   TableCell(TableCell *ref, bool limitTextWidth);
   ~TableCell();
};

} // namespace dw

#endif // __DW_TABLECELL_HH__