lib/interfaces/kdevmainwindow.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 2003 F@lk Brettschneider <falkbr@kdevelop.org> 00003 Copyright (C) 2003 John Firebaugh <jfirebaugh@kde.org> 00004 Copyright (C) 2003 Amilcar do Carmo Lucas <amilcar@ida.ing.tu-bs.de> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00019 Boston, MA 02111-1307, USA. 00020 */ 00021 #ifndef _KDEV_TOPLEVEL_H_ 00022 #define _KDEV_TOPLEVEL_H_ 00023 00024 00025 class KStatusBar; 00026 class KMainWindow; 00027 00028 class KDevMainWindow 00029 { 00030 public: 00031 00032 virtual void embedPartView(QWidget *view, const QString &title, const QString& toolTip = QString::null) = 0; 00033 virtual void embedSelectView(QWidget *view, const QString &title, const QString &toolTip) = 0; 00034 virtual void embedOutputView(QWidget *view, const QString &title, const QString &toolTip) = 0; 00035 00036 virtual void embedSelectViewRight(QWidget* view, const QString& title, const QString &toolTip) = 0; 00037 00038 virtual void removeView(QWidget *view) = 0; 00039 virtual void setViewAvailable(QWidget *pView, bool bEnabled) = 0; 00040 00041 virtual void raiseView(QWidget *view) = 0; 00042 virtual void lowerView(QWidget *view) = 0; 00043 virtual void lowerAllViews() = 0; 00044 00046 virtual void storeOutputViewTab() = 0; 00047 00049 virtual void restoreOutputViewTab() = 0; 00050 00051 virtual void loadSettings() = 0; 00052 00053 virtual KMainWindow *main() = 0; 00054 00055 KStatusBar *statusBar(); 00056 00057 virtual void prepareToCloseViews() = 0; 00058 virtual void guiRestoringFinished() = 0; 00059 00060 virtual void setUserInterfaceMode(const QString& /*uiMode*/) {} 00061 00063 virtual void callCommand(const QString& /*command*/) {} 00064 00065 protected: 00067 QWidget *previous_output_view; 00068 }; 00069 00070 00071 #endif