tablecellitem.h

来自「这是VCF框架的代码」· C头文件 代码 · 共 207 行

H
207
字号
#ifndef _VCF_TABLECELLITEM_H__#define _VCF_TABLECELLITEM_H__//TableCellItem.h/*Copyright 2000-2004 The VCF Project.Please see License.txt in the top level directorywhere you installed the VCF.*/#if _MSC_VER > 1000#   pragma once#endif/* Generated by Together */namespace VCF{class TableItemEditor;#define TABLECELLITEM_CLASSID		"53EA0BA2-7068-11d4-8F12-00207811CFAB"/**\class TableCellItem TableCellItem.h "vcf/ApplicationKit/TableCellItem.h"*/class APPLICATIONKIT_API TableCellItem : public Item {public:	enum TableCellItemState {		tcsNone = 0,		tisSelected = 0x0002,		tisReadonly = 0x0008,		tcsFixed = 0x0010,		tcsFocused = 0x0001,		tcsDropHighlighted = 0x0004,		tcsEditable = 0x0100	};	virtual ~TableCellItem(){};	/**	Calling this will create a new table item editor.	The implementor is responsible for returning an	editor that is properly initialized with the data 	from the item.	@return TableItemEditor an new instance of an editor, or	NULL if no editing is supported. If isReadonly() returns	true, then this should return NULL regardless of whether 	or not the item implementation supports and editor or 	not.	@see isReadonly()	*/	virtual TableItemEditor* createItemEditor() = 0;	virtual bool isSelected() = 0;	/**	Identifies if this item is in a readonly state, or if 	it's possible to edit it. 	*/	virtual bool isReadonly() = 0;	virtual bool isFixed() = 0;	virtual bool isFocused() = 0;	virtual bool isDropHighlighted() = 0;	virtual bool isEditable() = 0;	virtual void setSelected( const bool& val ) = 0;	virtual void setReadonly( const bool& val ) = 0;	virtual void setFocused( const bool& val ) = 0;	virtual void setDropHighlighted( const bool& val ) = 0;	virtual void setFixed( const bool& val ) = 0;	virtual String getCaption() = 0;	virtual void setCaption( const String& caption ) = 0;	/**	rerturns the width of the cell, taking into account the	text of the cell, and any other formatting rules the 	cell wants to consider.	*/	virtual double getTextCellWidth( GraphicsContext* context ) = 0;	virtual double getTextCellHeight( GraphicsContext* context ) = 0;	/**	Returns a non modifiable color reference. If you need to 	change the cell's color, you should call setColor().	@see setColor()	*/	virtual const Color& getColor() = 0;	virtual void setColor( Color* color ) = 0;	/**	Returns a non modifiable font reference. If you need to 	change the cell's font, you should call setFont().	@see setFont()	*/	virtual const Font& getFont() = 0;	virtual void setFont( Font* font ) = 0;};}/***CVS Log info*$Log$*Revision 1.4  2006/04/07 02:35:25  ddiego*initial checkin of merge from 0.6.9 dev branch.**Revision 1.3.2.3  2006/03/18 22:17:42  ddiego*removed par tag for doxygen comments as its not needed and*screws up the doc formatting.**Revision 1.3.2.2  2006/03/14 02:25:47  ddiego*large amounts of source docs updated.**Revision 1.3.2.1  2005/09/03 14:03:52  ddiego*added a package manager to support package info instances, and*fixed feature request 1278069 - Background color of the TableControl cells.**Revision 1.3  2005/07/09 23:14:55  ddiego*merging in changes from devmain-0-6-7 branch.**Revision 1.2.4.1  2005/01/26 20:59:28  ddiego*some fixes to table control and to teh table item editor interface**Revision 1.2  2004/08/07 02:49:09  ddiego*merged in the devmain-0-6-5 branch to stable**Revision 1.1.2.3  2004/06/06 07:05:31  marcelloptr*changed macros, text reformatting, copyright sections**Revision 1.1.2.2  2004/04/29 03:43:14  marcelloptr*reformatting of source files: macros and csvlog and copyright sections**Revision 1.1.2.1  2004/04/28 00:28:19  ddiego*migration towards new directory structure**Revision 1.9.2.1  2004/04/26 21:58:21  marcelloptr*changes for dir reorganization: _VCF_MACRO_H__**Revision 1.9  2004/04/03 15:48:40  ddiego*Merged over code from the 0-6-3 branch.**Revision 1.8.2.2  2004/01/30 22:08:08  ddiego*more fixes to the table model and table control**Revision 1.8.2.1  2004/01/30 05:08:14  ddiego*added more rearrangements for the table control**Revision 1.8  2003/12/18 05:15:57  ddiego*merge from devmain-0-6-2 branch into the stable branch**Revision 1.7.6.1  2003/09/12 00:09:32  ddiego*added better tabbing behaviour - fixed an earlier bug.*Code is easier to understand and it simplified the implementation*a bit as well*Moved around the RTTI definitions for various Appkit classes to a*single inline and stripped them from the various class headers**Revision 1.7  2003/02/26 04:30:38  ddiego*merge of code in the devmain-0-5-9 branch into the current tree.*most additions are in the area of the current linux port, but the major*addition to this release is the addition of a Condition class (currently*still under development) and the change over to using the Delegate class*exclusively from the older event handler macros.**Revision 1.6.14.1  2002/12/25 22:38:00  ddiego*more stupid fixes to get rid of the damn gcc no newline warning...grrr...**Revision 1.6  2002/05/09 03:10:42  ddiego*merged over code from development branch devmain-0-5-1a into the main CVS trunk**Revision 1.5.4.1  2002/04/27 15:42:56  ddiego*removed ApplicationKit.h and optimized header includes as*well as adding better include guard support**Revision 1.5  2002/01/24 01:46:47  ddiego*added a cvs "log" comment to the top of all files in vcf/src and vcf/include*to facilitate change tracking**/#endif // _VCF_TABLECELLITEM_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?