• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

sublime

container.h

00001 /***************************************************************************
00002  *   Copyright 2006-2007 Alexander Dymo  <adymo@kdevelop.org>              *
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU Library General Public License as       *
00006  *   published by the Free Software Foundation; either version 2 of the    *
00007  *   License, or (at your option) any later version.                       *
00008  *                                                                         *
00009  *   This program is distributed in the hope that it will be useful,       *
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00012  *   GNU General Public License for more details.                          *
00013  *                                                                         *
00014  *   You should have received a copy of the GNU Library General Public     *
00015  *   License along with this program; if not, write to the                 *
00016  *   Free Software Foundation, Inc.,                                       *
00017  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
00018  ***************************************************************************/
00019 #ifndef SUBLIMECONTAINER_H
00020 #define SUBLIMECONTAINER_H
00021 
00022 #include <ktabwidget.h>
00023 
00024 #include "sublimeexport.h"
00025 
00026 class QPaintEvent;
00027 
00028 namespace Sublime {
00029 
00030 class View;
00031 class Document;
00032 
00039 class SUBLIME_EXPORT Container: public KTabWidget {
00040 Q_OBJECT
00041 public:
00042     Container(QWidget *parent = 0);
00043     ~Container();
00044 
00046     void addWidget(View *view);
00048     void removeWidget(QWidget *w);
00050     bool hasWidget(QWidget *w);
00051 
00052     View *viewForWidget(QWidget *w) const;
00053 
00054     virtual void paintEvent(QPaintEvent *ev);
00055 
00056     void setTabBarHidden(bool hide);
00057 
00058     using KTabWidget::tabBar;
00059 
00060 protected:
00061     using KTabWidget::addTab;
00062     using KTabWidget::insertTab;
00063     using KTabWidget::removeTab;
00064 
00065 Q_SIGNALS:
00066   void activateView(Sublime::View* view);
00067 
00068 private slots:
00069   void widgetActivated(int idx);
00070   void documentTitleChanged(Sublime::Document* doc);
00071 private:
00072 
00073     struct ContainerPrivate * const d;
00074 
00075 };
00076 
00077 }
00078 
00079 #endif
00080 

sublime

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

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.4
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