• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

Kate

katebrokenswapfilebar.cpp

Go to the documentation of this file.
00001 /*  This file is part of the Kate project.
00002  *
00003  *  Copyright (C) 2010 Diana-Victoria Tiriplica <diana.tiriplica@gmail.com>
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Library General Public
00007  *  License as published by the Free Software Foundation; either
00008  *  version 2 of the License, or (at your option) any later version.
00009  *
00010  *  This library is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Library General Public License
00016  *  along with this library; see the file COPYING.LIB.  If not, write to
00017  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  *  Boston, MA 02110-1301, USA.
00019  */
00020 
00021 #include "katebrokenswapfilebar.h"
00022 #include "ui_brokenswapfilewidget.h"
00023 #include "kateview.h"
00024 
00025 #include <QWhatsThis>
00026 
00027 //BEGIN KateBrokenSwapFileBar
00028 KateBrokenSwapFileBar::KateBrokenSwapFileBar(KateView *view, QWidget *parent)
00029   : KateViewBarWidget( false, parent )
00030   , m_view ( view )
00031   , m_ui (new Ui::BrokenSwapFileWidget())
00032 {
00033   m_ui->setupUi( centralWidget() );
00034 
00035   // set warning icon
00036   m_ui->lblIcon->setPixmap(KIcon("dialog-warning").pixmap(64, 64));
00037 
00038   m_ui->btnOk->setGuiItem(KGuiItem(m_ui->btnOk->text(), KIcon("dialog-ok")));
00039 
00040   // clicking on the "Help" link pops up the content as what's this
00041   connect(m_ui->lblSwap, SIGNAL(linkActivated(const QString&)),
00042           this, SLOT(showWhatsThis(const QString&)));
00043   connect(m_ui->btnOk, SIGNAL(clicked()), this, SIGNAL(hideMe()));
00044 }
00045 
00046 KateBrokenSwapFileBar::~KateBrokenSwapFileBar ()
00047 {
00048   delete m_ui;
00049 }
00050 
00051 void KateBrokenSwapFileBar::showWhatsThis(const QString& text)
00052 {
00053   QWhatsThis::showText(QCursor::pos(), text);
00054 }
00055 
00056 //END KateBrokenSwapFileBar
00057 
00058 // kate: space-indent on; indent-width 2; replace-tabs on;

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal