Source: /app/hbasic/hbasic/dialogs/dlg_options.h
|
|
|
|
/***************************************************************************
opt_dialog.h - description
-------------------
begin : Sun Aug 13 2000
copyright : (C) 2000 by 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. *
* *
***************************************************************************/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "../src/structs.h"
class CDlgHeader;
class QTextStream;
class DlgOptions : public QDialog
{
Q_OBJECT
public:
DlgOptions( void );
~DlgOptions();
/* temporary copy of the global kbasic options */
HBASIC_OPTIONS copy_options;
void loadOptions( void );
void setDefaultParameter( void );
private:
QListBox *lb_optlist;
QFrame *opt_frame;
CDlgHeader *dlg_header;
QPushButton *btn_ok;
QPushButton *btn_cancel;
QPushButton *btn_default;
QFrame *fr_edit_border;
QLabel *la_edit_font;
QLabel *la_dlg_font;
/* ------------------------------------------------------- */
/* editor color dialog */
QLabel *la_col_bg;
QPushButton *bt_col_bg; /* Background color select */
QLabel *la_col_idf;
QPushButton *bt_col_idf; /* Error Background color select */
QLabel *la_col_text;
QPushButton *bt_col_text; /* Text color select */
QLabel *la_col_stdidf;
QPushButton *bt_col_stdidf; /* Standard identifier color select */
QLabel *la_col_comm;
QPushButton *bt_col_comm; /* Comment color select */
QLabel *la_col_string;
QPushButton *bt_col_string; /* String color select */
QLabel *la_col_marked;
QPushButton *bt_col_marked; /* Marked block background color select */
/* ---Dialog for grid options ---------------------------- */
QLineEdit *le_gridx;
QLineEdit *le_gridy;
QCheckBox *cb_snap_grid;
QCheckBox *cb_show_grid;
/* --- Dialog for language selection --------------------- */
QListView *lv_language;
/* ------------------------------------------------------- */
QListBoxItem *lv_editor_colors;
QListBoxItem *lv_guiedit_grid;
QListBoxItem *lv_general_fonts;
QListBoxItem *lv_language_select;
void createOptionsTree( void );
void createEditorColorDialog( void );
void createLanguageOptions( void );
void createGridDlgOptions( void );
void readLanguageList(void);
void createFontOptions( void );
void resizeEvent( QResizeEvent *evt );
void recreateOptionsFrame( QString header_info );
QColor createColor( long new_color );
void changeEditorColor( long *color );
void saveAllOptions( QTextStream &ts );
void saveOptions( QString *str_save_file_name );
void loadFromDom( QDomElement *docElem );
void loadParameter( QDomElement *docElem );
private slots:
void opt_select_changed( int new_select );
void opt_language_changed( QListViewItem *new_select );
void slotSnapGridToggled( bool new_value );
void slotShowGridToggled( bool new_value );
void slotGridxChanged( const QString &new_text );
void slotGridyChanged( const QString &new_text );
void editorColorBgClick( void );
void editorColorTextClick( void );
void editorColorCommClick( void );
void editorColorIdfClick( void );
void editorColorSIdfClick( void );
void editorColorMarkedClick( void );
void editorColorStringClick( void );
void slotSave( void );
void slotSetEditFont( void );
void slotSetDlgFont( void );
};
Generated by: root on linux on Sun Jul 13 18:06:35 2003, using kdoc 2.0a54. |