The SgmlCatalog class maintains and allows editing of a list of SGML CatalogEntry's. More...
Publicly inherits QDialog.
SgmlCatalog | ( ); | |
QList<CatalogEntry>& | entries | ( ); |
QString | entryToString | ( const CatalogEntry* e ); |
CatalogEntry* | find | ( Type type, QString id ); |
void | save | ( ); |
void | stringToEntry | ( const QString str, int& type, QString& id, QString& soi ); |
~SgmlCatalog | ( ); |
void | resizeEvent | ( QResizeEvent* e ); |
QString | getToken | ( FILE* fp ); |
void | doAdd | ( ); |
void | doDelete | ( ); |
void | doHighlighted | ( int index ); |
void | doUpdate | ( ); |
QPushButton* | _addButton; |
QPushButton* | _closeButton; |
QPushButton* | _deleteButton; |
QList<CatalogEntry> | _entries; |
QListBox* | _list; |
QLineEdit* | _publicIdEntry; |
QLabel* | _publicIdLabel; |
QFrame* | _separator; |
QLineEdit* | _storageIdEntry; |
QLabel* | _storageIdLabel; |
QComboBox* | _typeCombo; |
QLabel* | _typeLabel; |
QPushButton* | _updateButton; |
The SgmlCatalog class maintains and allows editing of a list of SGML CatalogEntry's.
There is exactly one SgmlCatalog for the entire application. This catalog provides a mapping from SGML object types and their public identifiers to their storage object identifiers. The SgmlCatalog object is also a modal dialog for editing the catalog entries.Create the SGML catalog and read in the catalog entries from the catalog file.
Return a reference to the list of all catalog entries.
Convert the given catalog entry to a string that can be displayed in a listbox or written to a catalog file.
Locate the catalog entry with the given type and public identifier.
Write the SGML Catalog to the file given in the options object.
Convert the string form of a catalog entry (as shown in the catalog listbox during editing) to its component parts.
Destroy the SGML catalog and all its entries.
Reposition my widgets (duh).
Return the next token from the open file. Tokens are delimited by white space and single or double quotes.
Add a new catalog entry based on the data in the edit fields.
Delete the selected listbox row from the catalog.
When a row is selected in the listbox, copy the catalog entry data into the edit fields.
Update the catalog with the data in the edit fields.