Source: /app/hbasic/hbasic/gui_db_access/db_design_table.h


Annotated List
Files
Globals
Hierarchy
Index
/* **************************************************************************
 File:
 Desc: 
 ----------------------------------------------------------------------------
	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.    */
/* ----------------------------------------------------------------------- */

/**
  Class DbDesignTable : This class represents one table widget in the
   database design window or in the report editor.
*/

/* ----------------------------------------------------------------------- */
/* Changelog: Description of important changes within this file.           */
/*            Please report with date, maintainer and change description.  */
/* ----------------------------------------------------------------------- */

#ifndef DBDESIGNTAB_H
#define DBDESIGNTAB_H

#include 
#include 

class HBQueryTable;
class HBDesignTable;

#include 
#include 
#include 

#include "../src/structs.h"
#include "../gui_db_access/query_designer.h"

class DbDesignTable : public QListBox
{
public:
	DbDesignTable(DbDesign* parent, HBQueryTable *table_ptr );
	DbDesignTable(DbDesign* parent, HBDesignTable *table_ptr );
	void setup( void );
	bool eventFilter( QObject *o, QEvent *evt);
	void getSelectedQueryColumns( HBQueryDesc *query_desc_ptr, HBQueryTable *query_table_ptr );
	HBDbColumn *getSelectedDesignColumn( void );
	HBDbColumn *getSelectedTableColumn( void );
	HBDesignTable *design_table_ptr;
	HBQueryTable *query_table_ptr;

private:
	DbDesign *event_dest;
	short display_mode;
	short mouse_is_moving;

	void sendSelectedItems( short xpos, short ypos );
	HBDbColumn *findTableColumnDesc( HBDbTable *table_ptr, QString column_name );
};

#endif


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