1 /** \file TocThemesSettingsWidget.h
2 * \brief Declaration of TocThemesSettingsWidget class
4 * Tieto Open Communicator - Client for the Telepathy communications framework.
5 * Copyright (c) 2010, Tieto Corporation
8 * Redistribution and use in source and binary forms, with or without modification,
9 * are permitted provided that the following conditions are met:
11 * Redistributions of source code must retain the above copyright notice,
12 * this list of conditions and the following disclaimer.
13 * Redistributions in binary form must reproduce the above copyright notice,
14 * this list of conditions and the following disclaimer in the documentation
15 * and/or other materials provided with the distribution.
16 * Neither the name of the Tieto Corporation nor the names of its contributors
17 * may be used to endorse or promote products derived from this software without
18 * specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23 * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 #ifndef TOCTHEMESSETTINGSWIDGET_H
33 #define TOCTHEMESSETTINGSWIDGET_H
37 #include <QtGui/QWidget>
39 class Ui_TocThemesSettingsWidgetClass;
45 /** \brief TocThemesSettingsWidget class
47 * Configuration window for application themes settings.
49 class TocThemesSettingsWidget : public QWidget
58 TocThemesSettingsWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0);
63 ~TocThemesSettingsWidget();
67 /** \brief Emited when user wants to close Theme view and without saving changes.
72 /** \brief Emited when user wants to change application theme.
75 void currentThemeChanged();
79 /** \brief Reimplemented from QWidget
82 virtual void showEvent( QShowEvent* event );
86 /** \brief Used to save the themes settings
88 * This slot is used when apply button is pressed.
89 * Data from the Theme list (active theme and all the themes)
90 * are stored in TocSettings.
92 * If Theme has been changed it emits currenThemeChanged() signal.
94 void saveThemesSettings();
100 Ui_TocThemesSettingsWidgetClass* ui; /// Ui definition header
105 #endif // TOCTHEMESSETTINGSWIDGET_H