/* ============================================================ * * This file is a part of digiKam project * http://www.digikam.org * * Date : 2007-12-08 * Description : Time line sidebar tab contents. * * Copyright (C) 2007-2008 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #ifndef TIMELINEVIEW_H #define TIMELINEVIEW_H // TQt includes. #include #include #include namespace Digikam { class SAlbum; class SearchTextBar; class TimeLineFolderView; class TimeLineViewPriv; class TimeLineView : public TQWidget { TQ_OBJECT public: TimeLineView(TQWidget *parent=0); ~TimeLineView(); TimeLineFolderView *folderView() const; SearchTextBar* searchBar() const; void setActive(bool val); private: void readConfig(); void writeConfig(); void createNewDateSearchAlbum(const TQString& name); bool checkName(TQString& name); bool checkAlbum(const TQString& name) const; private slots: void slotInit(); void slotScrollBarValueChanged(int); void slotRefDateTimeChanged(); void slotScaleChanged(int); void slotTimeUnitChanged(int); void slotCursorPositionChanged(); void slotSelectionChanged(); void slotResetSelection(); void slotSaveSelection(); void slotUpdateCurrentDateSearchAlbum(); void slotAlbumSelected(SAlbum*); void slotCheckAboutSelection(); void slotRenameAlbum(SAlbum*); private: TimeLineViewPriv* d; }; } // NameSpace Digikam #endif /* TIMELINEVIEW_H */