kdgantt
KDTimeHeaderWidget Class Reference
List of all members.Detailed Description
Definition at line 76 of file KDGanttViewSubwidgets.h.
Public Types | |
typedef KDGanttView::Scale | Scale |
typedef KDGanttView::YearFormat | YearFormat |
typedef KDGanttView::HourFormat | HourFormat |
typedef QValueList< DateTimeColor > | ColumnColorList |
typedef QValueList< KDIntervalColorRectangle * > | IntervalColorList |
Public Slots | |
void | setSettings (int) |
void | checkWidth (int) |
void | addTickRight (int num=1) |
void | addTickLeft (int num=1) |
void | preparePopupMenu () |
Signals | |
void | sizeChanged (int) |
Public Member Functions | |
KDTimeHeaderWidget (QWidget *parent, KDGanttView *gant) | |
~KDTimeHeaderWidget () | |
QString | getToolTipText (QPoint p) |
void | zoomToFit () |
void | zoom (double, bool absolute=true) |
void | zoomToSelection (QDateTime startTime, QDateTime endTime) |
double | zoomFactor () |
void | setAutoScaleMinorTickCount (int count) |
int | autoScaleMinorTickCount () |
void | setHorizonStart (const QDateTime &start) |
QDateTime | horizonStart () const |
void | setHorizonEnd (const QDateTime &start) |
QDateTime | horizonEnd () const |
void | setMaximumScale (Scale) |
KDTimeHeaderWidget::Scale | maximumScale () const |
void | setMinimumScale (Scale) |
KDTimeHeaderWidget::Scale | minimumScale () const |
KDTimeHeaderWidget::Scale | scale () const |
void | setMajorScaleCount (int count) |
int | majorScaleCount () const |
void | setMinorScaleCount (int count) |
int | minorScaleCount () const |
void | setMinimumColumnWidth (int width) |
int | minimumColumnWidth () const |
void | setYearFormat (YearFormat format) |
KDTimeHeaderWidget::YearFormat | yearFormat () const |
void | setHourFormat (HourFormat format) |
KDTimeHeaderWidget::HourFormat | hourFormat () const |
void | setShowMajorTicks (bool) |
bool | showMajorTicks () const |
void | setShowMinorTicks (bool) |
void | setScale (Scale unit) |
bool | showMinorTicks () const |
void | setColumnBackgroundColor (const QDateTime &column, const QColor &color, Scale mini=KDGanttView::Minute, Scale maxi=KDGanttView::Month) |
void | addIntervalBackgroundColor (KDIntervalColorRectangle *newItem) |
void | clearBackgroundColor () |
QColor | columnBackgroundColor (const QDateTime &column) const |
void | setWeekendBackgroundColor (const QColor &color) |
QColor | weekendBackgroundColor () const |
void | setWeekdayBackgroundColor (const QColor &color, int weekday) |
QColor | weekdayBackgroundColor (int weekday) const |
void | setWeekendDays (int start, int end) |
void | weekendDays (int &start, int &end) const |
void | computeTicks (bool doNotComputeRealScale=false) |
void | paintEvent (QPaintEvent *) |
int | getCoordX (QDate) |
int | getCoordX (QDateTime) |
QDateTime | getDateTimeForIndex (int coordX, bool local=true) |
void | setShowPopupMenu (bool show, bool showZoom, bool showScale, bool showTime, bool showYear, bool showGrid, bool showPrint) |
bool | registerStartTime () |
bool | registerEndTime () |
bool | showPopupMenu () const |
ColumnColorList | columnBackgroundColorList () const |
void | repaintMe (int left, int wid, QPainter *p=0) |
void | centerDateTime (const QDateTime ¢er) |
Public Attributes | |
QColor | weekdayColor [8] |
Friends | |
class | KDTimeTableWidget |
class | KDGanttViewItem |
class | KDGanttView |
class | KDGanttCanvasView |
Classes | |
struct | DateTimeColor |
Member Function Documentation
|
Returns the background color for the column closes to column.
Definition at line 1666 of file KDGanttViewSubwidgets.cpp. |
|
Returns the end of the horizon of the Gantt chart.
Definition at line 1234 of file KDGanttViewSubwidgets.cpp. |
|
Returns the start of the horizon of the Gantt chart.
Definition at line 1206 of file KDGanttViewSubwidgets.cpp. |
|
Returns the format in which to display hours.
Definition at line 1394 of file KDGanttViewSubwidgets.cpp. |
|
Returns the number of ticks per unit in the major scale.
Definition at line 1788 of file KDGanttViewSubwidgets.cpp. |
|
Returns the maximal allowed time scale of the lower scale of the header.
Definition at line 1290 of file KDGanttViewSubwidgets.cpp. |
|
Returns the minimum width a column needs to have.
Definition at line 1342 of file KDGanttViewSubwidgets.cpp. |
|
Returns the minimal allowed time scale of the lower scale of the header.
Definition at line 1315 of file KDGanttViewSubwidgets.cpp. |
|
Returns the number of ticks per unit in the minor scale.
Definition at line 1813 of file KDGanttViewSubwidgets.cpp. |
|
Returns the unit of the lower scale of the header.
Definition at line 1265 of file KDGanttViewSubwidgets.cpp. |
|
Sets the background color for the column closest to column.
Definition at line 1464 of file KDGanttViewSubwidgets.cpp. |
|
Sets the end of the horizon of the Gantt chart. If end is null, the horizon end is computed automatically.
Definition at line 1219 of file KDGanttViewSubwidgets.cpp. |
|
Sets the start of the horizon of the Gantt chart. If start is null, the horizon start is computed automatically.
Definition at line 1192 of file KDGanttViewSubwidgets.cpp. |
|
Specifies the format in which to display hours. If no hours are shown, this method has no effect.
Definition at line 1381 of file KDGanttViewSubwidgets.cpp. |
|
Sets the number of ticks in the major scale.
Definition at line 1775 of file KDGanttViewSubwidgets.cpp. |
|
Sets the maximal allowed time scale of the lower scale of the header.
Definition at line 1277 of file KDGanttViewSubwidgets.cpp. |
|
Sets the minimum width a column needs to have. If the size of the Gantt chart and the scale would make it necessary to go below this limit otherwise, the chart will automatically be made less exact.
Definition at line 1329 of file KDGanttViewSubwidgets.cpp. |
|
Sets the minimal allowed time scale of the lower scale of the header.
Definition at line 1302 of file KDGanttViewSubwidgets.cpp. |
|
Sets the number of ticks in the minor scale.
Definition at line 1800 of file KDGanttViewSubwidgets.cpp. |
|
Configures the unit of the lower scale of the header. The higher unit is computed automatically. Resets the zoomng factor to 1 (i.e. 100%).
Definition at line 1248 of file KDGanttViewSubwidgets.cpp. |
|
Specifies whether ticks should be shown on the major scale.
Definition at line 1406 of file KDGanttViewSubwidgets.cpp. |
|
Specifies whether ticks should be shown on the minor scale.
Definition at line 1434 of file KDGanttViewSubwidgets.cpp. |
|
Specifies the background color for week days. If no individual days are visible on the Gantt chart, this method has no visible effect. The days are specified as an interval of integer values where 1 means Monday and 7 means Sunday.
Definition at line 1716 of file KDGanttViewSubwidgets.cpp. |
|
Specifies the background color for weekend days. If no individual days are visible on the Gantt chart, this method has no visible effect.
Definition at line 1688 of file KDGanttViewSubwidgets.cpp. |
|
Defines which days are considered weekends. The days are specified as an interval of integer values where 1 means Monday and 7 means Sunday. In order to define a weekend from Sunday to Monday, specify (7,1).
Definition at line 1746 of file KDGanttViewSubwidgets.cpp. |
|
Specifies the format in which to display years. If no years are shown, this method has no effect.
Definition at line 1355 of file KDGanttViewSubwidgets.cpp. |
|
Returns whether ticks are shown on the major scale.
Definition at line 1422 of file KDGanttViewSubwidgets.cpp. |
|
Returns whether ticks are shown on the minor scale.
Definition at line 1450 of file KDGanttViewSubwidgets.cpp. |
|
Returns the background color for weekday days.
Definition at line 1730 of file KDGanttViewSubwidgets.cpp. |
|
Returns the background color for weekend days.
Definition at line 1701 of file KDGanttViewSubwidgets.cpp. |
|
Returns which days are considered weekends.
Definition at line 1761 of file KDGanttViewSubwidgets.cpp. |
|
Returns the format in which to display years.
Definition at line 1368 of file KDGanttViewSubwidgets.cpp. |
The documentation for this class was generated from the following files: