1
/* This file is part of the KDE project
2
Copyright (C) 2003 F@lk Brettschneider <falkbr@kdevelop.org>
3
Copyright (C) 2003 John Firebaugh <jfirebaugh@kde.org>
4
Copyright (C) 2003 Amilcar do Carmo Lucas <amilcar@ida.ing.tu-bs.de>
5
Copyright (C) 2004 Alexander Dymo <adymo@kdevelop.org>
7
This library is free software; you can redistribute it and/or
8
modify it under the terms of the GNU Library General Public
9
License as published by the Free Software Foundation; either
10
version 2 of the License, or (at your option) any later version.
12
This library is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
Library General Public License for more details.
17
You should have received a copy of the GNU Library General Public License
18
along with this library; see the file COPYING.LIB. If not, write to
19
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
Boston, MA 02111-1307, USA.
22
#ifndef KDEV_MAINWINDOW_H
23
#define KDEV_MAINWINDOW_H
32
@file kdevmainwindow.h
33
KDevelop main window interface.
37
KDevelop main window interface.
38
Provides methods to control the main window of an application.
43
/**Embeds a view of a part into the main window.
44
@param view The view to embed. Must be a KPart.
45
@param title The title of a view.
46
@param toolTip The tooltip of a view.*/
47
virtual void embedPartView(QWidget *view, const QString &title, const QString& toolTip = QString::null) = 0;
49
/**Embeds a toolview at the left of the main window.
50
@param view The view to embed. Must be a KPart.
51
@param title The title of a view.
52
@param toolTip The tooltip of a view.*/
53
virtual void embedSelectView(QWidget *view, const QString &title, const QString &toolTip) = 0;
55
/**Embeds a toolview at the bottom of the main window.
56
@param view The view to embed. Must be a KPart.
57
@param title The title of a view.
58
@param toolTip The tooltip of a view.*/
59
virtual void embedOutputView(QWidget *view, const QString &title, const QString &toolTip) = 0;
61
/**Embeds a toolview at the right of the main window.
62
@param view The view to embed. Must be a KPart.
63
@param title The title of a view.
64
@param toolTip The tooltip of a view.*/
65
virtual void embedSelectViewRight(QWidget* view, const QString& title, const QString &toolTip) = 0;
67
/**Removes a view from the main window.
68
@param view The view to remove.*/
69
virtual void removeView(QWidget *view) = 0;
71
/**Shows or hides a view.
72
@param pView The view to show or hide.
73
@param bEnabled true if view should be shown, false it it is not.*/
74
virtual void setViewAvailable(QWidget *pView, bool bEnabled) = 0;
76
/**Raises a view (shows it if it was minimized).
77
@param view The view to be raised.*/
78
virtual void raiseView(QWidget *view) = 0;
81
@param view The view to be lowered.*/
82
virtual void lowerView(QWidget *view) = 0;
84
/**Loads main window settings.*/
85
virtual void loadSettings() = 0;
87
/**@return KMainWindow object which actually represents the main window.*/
88
virtual KMainWindow *main() = 0;
90
/**@return KStatusBar object which actually represents the status bar in the main window.*/
91
KStatusBar *statusBar();