~ubuntu-branches/ubuntu/oneiric/nux/oneiric

« back to all changes in this revision

Viewing changes to Nux/TableItem.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-06-22 17:16:16 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20110622171616-3cyhhiwsb6ga9d30
Tags: 1.0.2-0ubuntu1
* New upstream release.
* Cherry-pick a fix for FTBFS with -fpermissive
* debian/control:
  - add new libxdamage-dev and libxcomposite-dev build-dep
  - add new libboost1.42-dev dep as well, should be transitionned to 1.46 once
    compiz is transitionned as well
* remove debian/patches/01_build_with_gcc46.patch as included upstream
* debian/rules:
  - disable google code tests while building
* debian/control, debian/rules, debian/libnux-1.0-common.install,
  debian/libnux-1.0-dev.install, debian/libnux-1.0-doc.install,
  debian/libnux-1.0-0.install:
  - change, prepare next ABI breakage and remove no more needed Breaks: with
    new soname bump
* libnux-1.0-common now replaces: libnux-0.9-common for the apport hook

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
    virtual int GetItemBestHeight();
80
80
    virtual void SetPropertyItemWidth();
81
81
 
82
 
    void SetItemTextColor (const Color &color)
83
 
    {
84
 
      m_PropertyTextColor = color.Clone();
85
 
    }
86
 
 
87
 
    void SetItemTextColor (const Color *color)
88
 
    {
89
 
      if (color == 0)
90
 
      {
91
 
        NUX_SAFE_DELETE (m_PropertyTextColor);
92
 
      }
93
 
      else
94
 
      {
95
 
        NUX_SAFE_DELETE (m_PropertyTextColor);
96
 
        m_PropertyTextColor = color->Clone();
97
 
      }
98
 
    }
99
 
 
100
 
    const Color &GetItemTextColor()
101
 
    {
102
 
      if (m_PropertyTextColor)
103
 
        return *m_PropertyTextColor;
104
 
      else
105
 
        return GPropertyItemTextColor0;
106
 
    }
107
 
 
108
 
    virtual void SetBackgroundColor (Color c)
 
82
    void SetItemTextColor (Color const& color)
 
83
    {
 
84
      m_PropertyTextColor = color;
 
85
    }
 
86
 
 
87
    Color const& GetItemTextColor() const
 
88
    {
 
89
      return m_PropertyTextColor;
 
90
    }
 
91
 
 
92
    virtual void SetBackgroundColor(Color const& c)
109
93
    {
110
94
      m_ItemBackgroundColor = c;
111
95
    }
112
 
    Color GetBackgroundColor() const
 
96
    Color const& GetBackgroundColor() const
113
97
    {
114
98
      return m_ItemBackgroundColor;
115
99
    }
215
199
 
216
200
    bool m_PropertyRedraw;
217
201
    Color m_ItemBackgroundColor;
218
 
    Color *m_PropertyTextColor;
 
202
    Color m_PropertyTextColor;
219
203
 
220
204
    bool  m_AlwaysShowOpeningButton;
221
205