StyleEditor

The StyleEditor class allows the user to directly edit a style sheet.

Publicly inherits QWidget, StyleSheetReceiver.

Public Methods

StyleEditor( QWidget* parent=???, const char* name=??? );
voidstyleSheet( StyleSheet* styleSheet );
~StyleEditor( );

Public Slots

voiddisplayActivated( int index );
boolfileClose( );
voidfileDismiss( );
voidfileNew( );
voidfileOpen( );
boolfileSave( );
boolfileSaveAs( );
voidsgmlAttrAdd( );
voidsgmlAttrDelete( );
voidsgmlAttrHighlighted( int index );
voidsgmlAttrUpdate( );
voidstyleAdd( );
voidstyleDelete( );
voidstyleHighlighted( int index );
voidstyleUpdate( );

Protected Methods

voidcloseEvent( QCloseEvent* e );
voidresizeEvent( QResizeEvent* e );

Private Methods

voidconstrain( );
voidsetFileName( const char* fileName );
voidsetStyleSheet( StyleSheet* styleSheet );

Private Data Members

QPushButton*_addButton;
QList<AttrInput>_attrInputs;
QLineEdit*_attrNameEntry;
QLineEdit*_attrValueEntry;
QPushButton*_deleteButton;
QComboBox*_displayCombo;
QLabel*_displayLabel;
QLabel*_equalLabel;
QPopupMenu*_fileMenu;
QString_fileName;
QLabel*_fileNameLabel;
QLabel*_fileNameValue;
int_lastSgmlAttrIndex;
QMenuBar*_menu;
bool_modified;
QPushButton*_sgmlAttrAddButton;
QPushButton*_sgmlAttrDeleteButton;
QPushButton*_sgmlAttrUpdateButton;
QGroupBox*_sgmlAttrsGroup;
SgmlAttrListBox*_sgmlAttrsList;
QWidget*_styleAttrs;
QGroupBox*_styleAttrsGroup;
ScrolledWindow*_styleAttrsWindow;
StyleListBox*_styleList;
QGroupBox*_styleListGroup;
QGroupBox*_styleSelectorGroup;
StyleSheet*_styleSheet;
QLineEdit*_tagEntry;
QLabel*_tagLabel;
QPushButton*_updateButton;

Public Methods Documentation

StyleEditor ( QWidget* parent=???, const char* name=??? );

Create a new StyleEditor. Create a StyleNotebook as a child widget,

and connect it to my done() slot.

Protected Methods Documentation

void resizeEvent ( QResizeEvent* e );

Reposition my widgets.


Return to Index.
Automatically generated on Aug 11 23:32