~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to lib/interfaces/kdevmainwindow.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>
 
6
 
 
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.
 
11
 
 
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.
 
16
 
 
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.
 
21
*/
 
22
#ifndef KDEV_MAINWINDOW_H
 
23
#define KDEV_MAINWINDOW_H
 
24
 
 
25
#include <qstring.h>
 
26
 
 
27
class QWidget;
 
28
class KStatusBar;
 
29
class KMainWindow;
 
30
 
 
31
/**
 
32
@file kdevmainwindow.h
 
33
KDevelop main window interface.
 
34
*/
 
35
 
 
36
/**
 
37
KDevelop main window interface.
 
38
Provides methods to control the main window of an application.
 
39
*/
 
40
class KDevMainWindow
 
41
{
 
42
public:
 
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;
 
48
    
 
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;
 
54
    
 
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;
 
60
    
 
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;
 
66
    
 
67
    /**Removes a view from the main window.
 
68
    @param view The view to remove.*/
 
69
    virtual void removeView(QWidget *view) = 0;
 
70
    
 
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;
 
75
    
 
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;
 
79
    
 
80
    /**Minimize a view.
 
81
    @param view The view to be lowered.*/
 
82
    virtual void lowerView(QWidget *view) = 0;
 
83
 
 
84
    /**Loads main window settings.*/
 
85
    virtual void loadSettings() = 0;
 
86
    
 
87
    /**@return KMainWindow object which actually represents the main window.*/
 
88
    virtual KMainWindow *main() = 0;
 
89
    
 
90
    /**@return KStatusBar object which actually represents the status bar in the main window.*/
 
91
    KStatusBar *statusBar();
 
92
};
 
93
 
 
94
#endif