You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
3.7 KiB
102 lines
3.7 KiB
15 years ago
|
/* This file is part of the KDE project
|
||
11 years ago
|
Copyright (C) 2003 F@lk Brettschneider <falkbr@kdevelop.org>
|
||
15 years ago
|
Copyright (C) 2003 John Firebaugh <jfirebaugh@kde.org>
|
||
|
Copyright (C) 2003 Amilcar do Carmo Lucas <amilcar@ida.ing.tu-bs.de>
|
||
11 years ago
|
Copyright (C) 2004 Alexander Dymo <adymo@kdevelop.org>
|
||
15 years ago
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Library General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2 of the License, or (at your option) any later version.
|
||
|
|
||
|
This library is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
Library General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Library General Public License
|
||
|
along with this library; see the file COPYING.LIB. If not, write to
|
||
15 years ago
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301, USA.
|
||
15 years ago
|
*/
|
||
11 years ago
|
#ifndef TDEV_MAINWINDOW_H
|
||
|
#define TDEV_MAINWINDOW_H
|
||
15 years ago
|
|
||
15 years ago
|
#include <tqstring.h>
|
||
15 years ago
|
|
||
15 years ago
|
class TQWidget;
|
||
15 years ago
|
class KStatusBar;
|
||
12 years ago
|
class TDEMainWindow;
|
||
15 years ago
|
|
||
|
/**
|
||
11 years ago
|
@file tdevmainwindow.h
|
||
15 years ago
|
KDevelop main window interface.
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
KDevelop main window interface.
|
||
|
Provides methods to control the main window of an application.
|
||
|
*/
|
||
11 years ago
|
class TDevMainWindow
|
||
15 years ago
|
{
|
||
|
public:
|
||
|
/**Destroys the main window*/
|
||
11 years ago
|
virtual ~TDevMainWindow() {} // must be virtual!
|
||
15 years ago
|
|
||
|
/**Embeds a view of a part into the main window.
|
||
|
@param view The view to embed. Must be a KPart.
|
||
|
@param title The title of a view.
|
||
|
@param toolTip The tooltip of a view.*/
|
||
14 years ago
|
virtual void embedPartView(TQWidget *view, const TQString &title, const TQString& toolTip = TQString()) = 0;
|
||
15 years ago
|
|
||
|
/**Embeds a toolview at the left of the main window.
|
||
|
@param view The view to embed. Must be a KPart.
|
||
|
@param title The title of a view.
|
||
|
@param toolTip The tooltip of a view.*/
|
||
15 years ago
|
virtual void embedSelectView(TQWidget *view, const TQString &title, const TQString &toolTip) = 0;
|
||
15 years ago
|
|
||
|
/**Embeds a toolview at the bottom of the main window.
|
||
|
@param view The view to embed. Must be a KPart.
|
||
|
@param title The title of a view.
|
||
|
@param toolTip The tooltip of a view.*/
|
||
15 years ago
|
virtual void embedOutputView(TQWidget *view, const TQString &title, const TQString &toolTip) = 0;
|
||
15 years ago
|
|
||
|
/**Embeds a toolview at the right of the main window.
|
||
|
@param view The view to embed. Must be a KPart.
|
||
|
@param title The title of a view.
|
||
|
@param toolTip The tooltip of a view.*/
|
||
15 years ago
|
virtual void embedSelectViewRight(TQWidget* view, const TQString& title, const TQString &toolTip) = 0;
|
||
15 years ago
|
|
||
|
/**Removes a view from the main window.
|
||
|
@param view The view to remove.*/
|
||
15 years ago
|
virtual void removeView(TQWidget *view) = 0;
|
||
15 years ago
|
|
||
|
/**Shows or hides a view.
|
||
|
@param pView The view to show or hide.
|
||
|
@param bEnabled true if view should be shown, false it it is not.*/
|
||
15 years ago
|
virtual void setViewAvailable(TQWidget *pView, bool bEnabled) = 0;
|
||
15 years ago
|
|
||
|
/**Raises a view (shows it if it was minimized).
|
||
|
@param view The view to be raised.*/
|
||
15 years ago
|
virtual void raiseView(TQWidget *view) = 0;
|
||
15 years ago
|
|
||
|
/**Minimize a view.
|
||
|
@param view The view to be lowered.*/
|
||
15 years ago
|
virtual void lowerView(TQWidget *view) = 0;
|
||
15 years ago
|
|
||
|
/**Loads main window settings.*/
|
||
|
virtual void loadSettings() = 0;
|
||
|
|
||
|
/**Sets the current document's caption, if applicable.
|
||
|
@param caption the caption to set.*/
|
||
15 years ago
|
virtual void setCurrentDocumentCaption( const TQString &caption ) = 0;
|
||
15 years ago
|
|
||
12 years ago
|
/**@return TDEMainWindow object which actually represents the main window.*/
|
||
|
virtual TDEMainWindow *main() = 0;
|
||
15 years ago
|
|
||
|
/**@return KStatusBar object which actually represents the status bar in the main window.*/
|
||
|
KStatusBar *statusBar();
|
||
|
};
|
||
|
|
||
|
#endif
|