File indexing completed on 2024-05-19 04:48:46
0001 /**************************************************************************************** 0002 * Copyright (c) 2004-2007 Mark Kretschmann <kretschmann@kde.org> * 0003 * Copyright (c) 2004 Frederik Holljen <fh@ez.no> * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify it under * 0006 * the terms of the GNU General Public License as published by the Free Software * 0007 * Foundation; either version 2 of the License, or (at your option) any later * 0008 * version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 0011 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 0012 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 0013 * * 0014 * You should have received a copy of the GNU General Public License along with * 0015 * this program. If not, see <http://www.gnu.org/licenses/>. * 0016 ****************************************************************************************/ 0017 0018 #ifndef NOTIFICATIONSCONFIG_H 0019 #define NOTIFICATIONSCONFIG_H 0020 0021 #include "ui_NotificationsConfig.h" 0022 #include "configdialog/ConfigDialogBase.h" 0023 #include "widgets/Osd.h" 0024 0025 class OSDPreviewWidget; 0026 0027 class NotificationsConfig : public ConfigDialogBase, public Ui_NotificationsConfig 0028 { 0029 Q_OBJECT 0030 0031 public: 0032 explicit NotificationsConfig( Amarok2ConfigDialog* parent ); 0033 ~NotificationsConfig() override; 0034 0035 bool hasChanged() override; 0036 bool isDefault() override; 0037 void updateSettings() override; 0038 0039 Q_SIGNALS: 0040 void changed(); 0041 0042 private Q_SLOTS: 0043 void slotPositionChanged(); 0044 void useCustomColorsToggled( bool ); 0045 void setGrowlEnabled( bool ); 0046 0047 private: 0048 OSDPreviewWidget* m_osdPreview; 0049 0050 OSDWidget::Alignment m_oldAlignment; 0051 uint m_oldYOffset; 0052 0053 void hideEvent( QHideEvent* ) override; 0054 void showEvent( QShowEvent* ) override; 0055 }; 0056 0057 #endif