Source: /app/hbasic/hbasic/source_editor/source_edit_data.h


Annotated List
Files
Globals
Hierarchy
Index

#ifndef SOURCE_DATA_H
#define SOURCE_DATA_H

class QFile;

#include 
#include "memory.h"
#include "../source_editor/source_edit_widget.h"

#define COMMENT_TYPE_NONE 0
#define COMMENT_TYPE_LINE 1
#define COMMENT_TYPE_START 2
#define COMMENT_TYPE_END 3

class CSourceEditData : public MemoryRBlock
{
public:
	CSourceEditData( long block_length );
	int unparseLine( unsigned char *start_line, unsigned char *write_ptr);
	unsigned char *getFirstSourceLine( void );
	void setSourceEditor( CSourceEditWidget *new_editor );
	void saveSourceCode( QFile *f );
	void saveSourceCodeAscii( QFile *f );
	void undoDeleteText( short undo_mode, EDIT_UNDO_TEXT *undo_desc_ptr );
	void undoInsertText( EDIT_UNDO_TEXT *undo_desc_ptr );
	int parse_new_line( unsigned char *readptr );
	void markCommentLinesForward( void );
	void markCommentLinesBackward( void );
	void setSourceLanguage( short new_language );

	/* First token found when parsing new line. */
	/* Used to find keywords for indentation. */
	short first_line_token;

	/* Language (token) to be used for current sourcecode */
	short language;
	int line_count;        /* number of lines in source code */

	/* Appropriate source edit window */
	CSourceEditWidget *source_editor;

};

#endif


Generated by: root on linux on Sun Jul 13 18:06:35 2003, using kdoc 2.0a54.