• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeparts
 

tdeparts

  • KParts
  • MainWindow
Public Member Functions | Protected Slots | Protected Member Functions | List of all members
KParts::MainWindow Class Reference

#include <mainwindow.h>

Inheritance diagram for KParts::MainWindow:
TDEMainWindow KParts::PartBase KXMLGUIBuilder KXMLGUIClient KXMLGUIClient

Public Member Functions

 MainWindow (TQWidget *parent, const char *name=0L, WFlags f=(WFlags)(WType_TopLevel|WDestructiveClose))
 
 MainWindow (const char *name=0L, WFlags f=(WFlags) WDestructiveClose)
 
 MainWindow (int cflags, TQWidget *parent, const char *name=0L, WFlags f=(WFlags)(WType_TopLevel|WDestructiveClose))
 
virtual ~MainWindow ()
 
- Public Member Functions inherited from KParts::PartBase
 PartBase ()
 
virtual ~PartBase ()
 
void setPartObject (TQObject *object)
 
TQObject * partObject () const
 

Protected Slots

void createGUI (KParts::Part *part)
 
virtual void slotSetStatusBarText (const TQString &)
 
void saveNewToolbarConfig ()
 

Protected Member Functions

virtual void createShellGUI (bool create=true)
 
- Protected Member Functions inherited from KParts::PartBase
virtual void setInstance (TDEInstance *instance)
 
virtual void setInstance (TDEInstance *instance, bool loadPlugins)
 
void loadPlugins (TQObject *parent, KXMLGUIClient *parentGUIClient, TDEInstance *instance)
 
void setPluginLoadingMode (PluginLoadingMode loadingMode)
 

Additional Inherited Members

- Protected Types inherited from KParts::PartBase
enum  PluginLoadingMode { DoNotLoadPlugins = 0, LoadPlugins = 1, LoadPluginsIfEnabled = 2 }
 

Detailed Description

A KPart-aware main window, whose user interface is described in XML.

Inherit your main window from this class and don't forget to call setXMLFile() in the inherited constructor.

It implements all internal interfaces in the case of a TDEMainWindow as host: the builder and servant interface (for menu merging).

Definition at line 47 of file mainwindow.h.

Constructor & Destructor Documentation

MainWindow::MainWindow ( TQWidget *  parent,
const char *  name = 0L,
WFlags  f = (WFlags)(WType_TopLevel | WDestructiveClose) 
)

Constructor, same signature as TDEMainWindow.

Definition at line 60 of file mainwindow.cpp.

MainWindow::MainWindow ( const char *  name = 0L,
WFlags  f = (WFlags)WDestructiveClose 
)

Compatibility Constructor.

Definition at line 67 of file mainwindow.cpp.

MainWindow::MainWindow ( int  cflags,
TQWidget *  parent,
const char *  name = 0L,
WFlags  f = (WFlags)(WType_TopLevel | WDestructiveClose) 
)

Constructor with creation flags, see TDEMainWindow.

Since
3.2

Definition at line 74 of file mainwindow.cpp.

MainWindow::~MainWindow ( )
virtual

Destructor.

Definition at line 81 of file mainwindow.cpp.

Member Function Documentation

void MainWindow::createGUI ( KParts::Part *  part)
protectedslot

Create the GUI (by merging the host's and the active part's) You must call this in order to see any GUI being created.

In a main window with multiple parts being shown (e.g. as in Konqueror) you need to connect this slot to the KPartManager::activePartChanged() signal

Parameters
partThe active part (set to 0L if no part).

Definition at line 86 of file mainwindow.cpp.

void KParts::MainWindow::saveNewToolbarConfig ( )
protectedslot

Rebuilds the GUI after KEditToolbar changed the toolbar layout.

See also
configureToolbars() KDE4: make this virtual. (For now we rely on the fact that it's called as a slot, so the metaobject finds it here).

Definition at line 185 of file mainwindow.cpp.

void MainWindow::slotSetStatusBarText ( const TQString &  text)
protectedvirtualslot

Called when the active part wants to change the statusbar message Reimplement if your mainwindow has a complex statusbar (with several items)

Definition at line 145 of file mainwindow.cpp.


The documentation for this class was generated from the following files:
  • mainwindow.h
  • mainwindow.cpp

tdeparts

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

tdeparts

Skip menu "tdeparts"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeparts by doxygen 1.8.8
This website is maintained by Timothy Pearson.