// $Id: RepGenSlotHtml.hpp,v 1.5 2009/03/29 21:24:23 philw Exp $ // // class RepGenSlotHtml : public RepGenSlot // //-- #ifndef RepGenSlotHtmlINCLUDED #define RepGenSlotHtmlINCLUDED #ifndef RepGenSlotINCLUDED #include "RepGenSlot.hpp" #endif #ifndef IconHandleINCLUDED #include "IconHandle.hpp" #endif #include #include class RwModelReport; class Slot; class cwofstream; class RepGenSlotHtml : public RepGenSlot { // defined in RepGenSlot base class: //-- public: //-- typedef enum { //-- SlotList_Scalar, //-- SlotList_Series, //-- SlotList_Other //-- } SlotListType; // protected, from RepGenSlot base class: //-- RwModelReport* _modelReport; // input //-- const Slot* _slot; // input public: RepGenSlotHtml (RwModelReport*, const Slot*); virtual ~RepGenSlotHtml(); // *************************** // *** Slot List Support *** // *************************** public: void writeSlotListHeader (SlotListType, const QString& slotColLabel, int indentLevel, cwofstream&) const; void writeSlotListRow (SlotListType, int indentLevel, cwofstream&) const; // ***************************** // *** Slot Detail Support *** // ***************************** private: // virtual from RepGenSlot virtual void writeSlotDetailTitleSection (cwofstream&); virtual void writeSlotDataTable (cwofstream&); void writeSlotDataTableHeader (int indentLevel, cwofstream&); void writeSlotDataTableColMap (int indentLevel, cwofstream&); void writeSlotDataTableRow (int rowInx, int indentLevel, cwofstream&); // ***************************** // *** HTML Slot Utilities *** // ***************************** private: // Slot Properties QString slotTypHtml (bool verbose=false) const; QString slotImgFileHtml() const; QSize slotImgSize() const; QString slotNameHtml() const; QString slotValHtml() const; QString slotUnitsHtml (bool brackets) const; QString slotRowsHtml() const; QString slotColsHtml() const; QString slotLabelsHtml() const; QString seriesStepHtml() const; QString seriesStartHtml() const; QString seriesEndHtml() const; // Parent SimObj Properties QString objTypHtml() const; QString objImgFileHtml() const; QSize objImgSize() const; QString objNameHtml() const; }; #endif // RepGenSlotHtmlINCLUDED //--- (end RepGenSlotHtml.hpp) ---