aqfoxext/src/widgets/fxx_textcolumn.hpp @ 0206f615
2fb974b2 | Martin Preuss | /***************************************************************************
|
|
* This file is part of the project AqFoxExt. *
|
|||
* AqFoxExt (c) by 2011 Martin Preuss, all rights reserved. *
|
|||
* *
|
|||
* *
|
|||
* This library is free software; you can redistribute it and/or *
|
|||
* modify it under the terms of the GNU Lesser General Public *
|
|||
* License as published by the Free Software Foundation; either *
|
|||
* version 2.1 of the License, or (at your option) any later version. *
|
|||
* *
|
|||
* This library is distributed in the hope that it will be useful, *
|
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
|
|||
* Lesser General Public License for more details. *
|
|||
* *
|
|||
* You should have received a copy of the GNU Lesser General Public *
|
|||
* License along with this library; if not, write to the Free Software *
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
|
|||
* MA 02111-1307 USA *
|
|||
* *
|
|||
***************************************************************************/
|
|||
#ifndef FXX_TEXTCOLUMN_HPP
|
|||
#define FXX_TEXTCOLUMN_HPP
|
|||
#include <fx.h>
|
|||
#include <aqfoxext/aqfoxext.h>
|
|||
#include "fxx_basetree.hpp"
|
|||
class AQFOXEXT_API FXXTextColumn: public FXXBaseTreeColumn {
|
|||
public:
|
|||
public:
|
|||
ebfba822 | Martin Preuss | FXXTextColumn(const char *text, FXuint opts=JUSTIFY_LEFT);
|
|
FXXTextColumn(const FXString &text, FXuint opts=JUSTIFY_LEFT);
|
|||
2fb974b2 | Martin Preuss | ~FXXTextColumn();
|
|
void layoutForWidth(const FXXBaseTree *tree, FXint w);
|
|||
void draw(const FXXBaseTree *tree, const FXXBaseTreeItem *item, FXDC& dc,FXint x,FXint y,FXint w,FXint h);
|
|||
int compareTo(const FXXBaseTreeColumn *column) const;
|
|||
const FXString &getText() const { return m_text;};
|
|||
ebfba822 | Martin Preuss | void setText(const FXString &text) { m_text=text;};
|
|
void setText(const char *text) { m_text=text?FXString(text):FXString("");};
|
|||
2fb974b2 | Martin Preuss | ||
protected:
|
|||
FXString m_text;
|
|||
};
|
|||
#endif
|