Source: /app/hbasic/hbasic/src/project_group.h
|
|
|
|
/* **************************************************************************
File: project_group.h
Desc: Store data structures used to handle list of projects.
----------------------------------------------------------------------------
copyright : (C) 2001 HBasic project (Marcus Engels)
***************************************************************************/
/* **************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
/* ----------------------------------------------------------------------- */
/* Classlist: List of classes that will be defined in this source file. */
/* ----------------------------------------------------------------------- */
/* CProjectGroup : Class that stores the list of currently available projects. */
/* ----------------------------------------------------------------------- */
/* Changelog: Description of important changes within this file. */
/* Please report with date, maintainer and change description. */
/* ----------------------------------------------------------------------- */
#ifndef PROJECTGROUP_H
#define PROJECTGROUP_H
class project_group;
#include
#include
#include
#include
#include
#include "structs.h"
class CProject;
class DbController;
/**
* CProjectGroup : Class that stores the list of currently available projects.
*/
class CProjectGroup : public QObject
{
Q_OBJECT
public:
CProjectGroup ( int project_type, QString *filename );
~CProjectGroup ( void );
void loadProjectHeader( QFile *load_file, long name_length );
void saveProjectGroup( QString *str_save_file_name );
void saveAllProjectsAscii( QString *str_save_file_name );
void openFile( QString *filename );
int loadPackage( QFile *f, FILE_TAG_HEADER *file_info, short save_pos );
void createProjectFromFile( char *project_type );
void slotFileLoadAscii( QFile *f, unsigned char *load_buffer );
protected:
void loadPackageList( QFile *f );
void loadAsciiSource( QFile *f, char *load_buffer );
void loadProjectGroup( QFile *f );
void loadProject( QFile *f );
public:
/* -------------------------------------- */
/* Number of next project name to create. */
short next_project_number;
CProject *current_project;
public slots:
short createNewProject( void );
};
#endif
Generated by: root on linux on Sun Jul 13 18:06:35 2003, using kdoc 2.0a54. |