Source: /app/hbasic/hbasic/libdesc/method_editor.h
|
|
|
|
#ifndef METHOD_EDITOR_H
#define METHOD_EDITOR_H
#include
#include "method_desc.h"
class QString;
class QComboBox;
class QLineEdit;
class QListView;
class QPushButton;
class QGroupBox;
class QListViewItem;
class MethodEditor : public QDialog
{
Q_OBJECT
public:
MethodEditor( CMethodDesc *method_ptr, QString *lib_name );
QLineEdit *le_method_name;
/* Name of return value */
QLineEdit *le_return_name;
/* Type of return value */
QComboBox *cb_return_type;
/* Name of parameter */
QLineEdit *le_par_name;
/* Docid for further HTML description */
QLineEdit *le_doc_id;
/* Type of parameter */
QComboBox *cb_par_type;
QGroupBox *gb_parameter;
/* List of parameters for method call */
QListView *lv_parameter;
/* Call symbol when starting method */
QLineEdit *le_method_symbol;
/* Path to html description file for method */
QLineEdit *le_method_desc;
private:
QString *library_name;
CMethodDesc *edit_method_ptr;
QPushButton *btn_ok;
QPushButton *btn_down;
QPushButton *btn_up;
QPushButton *btn_cancel;
QPushButton *btn_sel_symbol;
QPushButton *btn_add;
QPushButton *btn_del;
QListViewItem *selected_par;
void insertTypeEntries( QComboBox *cb_ptr );
void setTypeName( QComboBox *combo_ptr, short type );
QString getTypeString( short type );
short getTypeId( QString type_name );
private slots:
void slotSelExit( void );
void slotOk( void );
void slotAddPar( void );
void slotParDown( void );
void slotParUp( void );
void slotDelPar( void );
void slotParClicked( QListViewItem *selected_item );
void slotParnameChanged( const QString &new_text );
void slotPartypeActivated( const QString &new_text );
};
#endif
Generated by: root on linux on Sun Jul 13 18:06:35 2003, using kdoc 2.0a54. |