Source: /app/hbasic/hbasic/src/select_window.h
|
|
|
|
/* **************************************************************************
File: select_window.h
Desc: Window to select next GUI component to be created.
----------------------------------------------------------------------------
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 CSelectWindow : Window to select next GUI component to be created.
*/
/* ----------------------------------------------------------------------- */
/* Changelog: Description of important changes within this file. */
/* Please report with date, maintainer and change description. */
/* ----------------------------------------------------------------------- */
#ifndef SELWINDOW_H
#define SELWINDOW_H
#include
#include
#include
#include
#include
#include
#include "defines.h"
#include "structs.h"
#include "../hbdata/hbsublist.h"
#include "window_list.h"
class QListView;
class QTabWidget;
class HBSelectWindow;
/* ####################################################### */
class CSelectButton : public QToolButton
{
public:
CSelectButton( QWidget *parent, long new_class_ptr );
long class_ptr;
};
/* ########################################################### */
/**
* class CSelectWindow : Window to select next GUI component to be created.
*/
class CSelectWindow : public CWindowListChild
{
Q_OBJECT
Q_PROPERTY( bool visible READ getVisible WRITE setVisible );
private:
short xpos;
short ypos;
/* Widget width for different working modes */
short widget_mode_width;
short report_mode_width;
/* 0 = normal widget select 1= report widget select */
short display_mode;
public:
CSelectWindow( QWidget *parent );
~CSelectWindow( void );
CSelectButton *createClassButton( QPixmap *btn_pix,
QString *class_name, long class_ptr );
void setDialogFont( QFont *new_font );
void decrementButtonPos( void );
/* Methods to handle properties */
bool getVisible() const;
void setVisible( bool );
short current_tool;
CSelectButton *btn_selected;
QScrollView *scroll_window;
QListView *lv_report_parts;
QListView *lv_tab_column;
QTabWidget *tw_list_type;
private:
void showReportSelection( void );
void closeEvent( QCloseEvent *evt );
void createWidgetIcons( void );
void createPartTree( void );
public slots:
void button_clicked();
private slots:
void resizeEvent( QResizeEvent *evt );
};
#endif
Generated by: root on linux on Sun Jul 13 18:06:35 2003, using kdoc 2.0a54. |