Skip to content
Snippets Groups Projects
Select Git revision
  • 46910037569a1fbab950c0d8ff5acc0068f6b045
  • master default protected
  • release/201811
  • release/201812
  • release/201901
  • release/201902
  • release/201903
  • release/201904
  • release/201905
  • release/201906
  • release/201908
  • release/201912
  • release/202001
  • release/202005
  • release/windows-test/201910
  • release/201808
  • wip/smartlist_refacto
  • wip/patches_poly_2017/JimmyHamel/MathieuGirouxHuppe
18 results

MessageTextPage.xaml.cpp

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    HistoryTreeItem.cpp 21.12 KiB
    /***************************************************************************
     *   Author : Mathieu Leduc-Hamel mathieu.leduc-hamel@savoirfairelinux.com *
     *            Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com>*
     *                                                                         *
     *   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 3 of the License, 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.                          *
     *                                                                         *
     *   You should have received a copy of the GNU General Public License     *
     *   along with this program; if not, write to the                         *
     *   Free Software Foundation, Inc.,                                       *
     *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
     **************************************************************************/
    
    //Parent
    #include "HistoryTreeItem.h"
    
    //Qt
    #include <QtGui/QGridLayout>
    #include <QtGui/QMenu>
    #include <QtGui/QLabel>
    #include <QtGui/QSpacerItem>
    #include <QtGui/QHBoxLayout>
    #include <QtGui/QToolButton>
    #include <QtGui/QMessageBox>
    #include <QtGui/QPainter>
    #include <QtGui/QColor>
    #include <QtGui/QFontMetrics>
    #include <QtCore/QStringList>
    #include <QtCore/QFile>
    #include <Phonon/MediaObject>
    #include <Phonon/BackendCapabilities>
    #include <Phonon/AudioOutput>
    #include <Phonon/SeekSlider>
    
    //KDE
    #include <KLocale>
    #include <KDebug>
    #include <KAction>
    #include <KIcon>
    #include <KMessageBox>
    #include <KStandardDirs>
    
    //SFLPhone library
    #include "lib/sflphone_const.h"
    #include "lib/Contact.h"
    #include "lib/Call.h"
    
    //SFLPhone
    #include "klib/AkonadiBackend.h"
    #include "SFLPhone.h"
    #include "widgets/BookmarkDock.h"
    
    const char * HistoryTreeItem::callStateIcons[12] = {ICON_INCOMING, ICON_RINGING, ICON_CURRENT, ICON_DIALING, ICON_HOLD, ICON_FAILURE, ICON_BUSY, ICON_TRANSFER, ICON_TRANSF_HOLD, "", "", ICON_CONFERENCE};
    
    class PlayerWidget : public QWidget {
    public:
       PlayerWidget(QWidget* parent = 0) : QWidget(parent) {}
    protected:
       virtual void paintEvent(QPaintEvent* /*event*/)
       {
          QColor backgroundColor = palette().light().color();
          backgroundColor.setAlpha(200);
          QPainter customPainter(this);