Rotated Table Header with Qt4 QHeaderView
Completion for the Run Analysis Dialog Grid Table
Phil Weinstein -- 9-19-2008 -- Hit Refresh  /  Go To Project Index

RwColumnHeaderWidget is an implementation of a Qt4 QHeaderView for horizontal headers (column headers) for QTableViews -- with capabilities currently sufficient to support rotated text for the Run Analysis Dialog Grid Table. SEE:

Main Page ... Header Comment ... Windows Screenshots ... Solaris Screenshots ... Custom Font ... Drawing Fix
 
// $Id: RwColumnHeaderWidget.cpp,v 1.7 2008/09/20 00:13:37 philw Exp $
//
// RwColumnHeaderWidget is a Qt4 Horizontal QHeaderView implementation.
// This widget maintains a character string (RWCString, ASCII) for each
// column.
//
// SUPPORTED FORMAT TYPES:
// RwColumnHeaderWidget::FormatType
//
// FMT_DEFAULT = 0 // default format, non-rotated text.
// FMT_ROTATED_UP // quarter-turn counter-clockwise [PREFERRED]
// FMT_ROTATED_DOWN // quarter-turn clockwise, like a book spine.
//
// DEVELOPMENT STATUS [9-19-2008]:
//
// Recently Completed:
// o Column selection support (for full table column selection).
// o Header section beveled border drawing.
// o Selection ornamentation (full table column and single cell in col).
// o Direct rotated text drawing (no longer using intermediate QPixmaps).
//
// Not Completed *** NOT PLANNED for the current development [9-19-2008]:
// o Column Sort Indicator (triangle arrow shown in sorted column).
// o Support for multiple-line header text (either rotated or not).
// o Text Alignment. All header text is centered in both dimensions.
//
// MAJOR CLIENT METHODS:
//
// RwColumnHeaderWidget (QWidget* parent, FormatType);
//
// // Column Data
// QString label (int section) const;
// void setLabel (int section, const QString&);
// void setLabels (const QStringList& labels);
//
//---