• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Generic Shell
 

KDevelop Generic Shell

Public Slots | Public Member Functions | Static Public Member Functions | List of all members
PartController Class Reference

#include <partcontroller.h>

Public Slots

void slotActivePartChanged (KParts::Part *part)
void slotCloseWindow ()
void slotCloseOtherWindows ()
void slotCloseAllWindows ()
void slotSave ()
void slotReload ()

Public Member Functions

 PartController (TQWidget *toplevel)
void setEncoding (const TQString &encoding)
void editDocument (const KURL &inputUrl, int lineNum=-1, int col=-1)
void splitCurrentDocument (const KURL &inputUrl, int lineNum=-1, int col=-1)
void scrollToLineColumn (const KURL &url, int lineNum=-1, int col=-1, bool storeHistory=false)
void editDocumentInternal (const KURL &inputUrl, int lineNum=-1, int col=-1, bool activate=true, bool addToCurrentBuffer=false)
void integrateTextEditorPart (KTextEditor::Document *doc)
void showDocument (const KURL &url, bool newWin=false)
void showPart (KParts::Part *part, const TQString &name, const TQString &shortDescription)
KParts::ReadOnlyPart * partForURL (const KURL &url)
KParts::ReadOnlyPart * qtDesignerPart ()
KParts::Part * partForWidget (const TQWidget *widget)
void activatePart (KParts::Part *part)
bool closePart (KParts::Part *part)
KURL::List openURLs ()
bool querySaveFiles ()
bool saveAllFiles ()
bool saveFiles (const KURL::List &list)
bool saveFile (const KURL &url, bool force=false)
void revertAllFiles ()
void revertFiles (const KURL::List &list)
bool closeAllFiles ()
bool closeFiles (const KURL::List &list)
DocumentState documentState (KURL const &)
bool readyToClose ()
bool closeFile (const KURL &)
bool closeAllOthers (const KURL &)
void reloadFile (const KURL &url)
KTextEditor::Editor * openTextDocument (bool activate=true)
KParts::Factory * findPartFactory (const TQString &mimeType, const TQString &partType, const TQString &preferredName=TQString())

Static Public Member Functions

static void createInstance (TQWidget *parent)
static PartController * getInstance ()

Detailed Description

Part controler implementation.

Definition at line 43 of file partcontroller.h.

Constructor & Destructor Documentation

◆ PartController()

PartController::PartController ( TQWidget * toplevel)

Definition at line 91 of file partcontroller.cpp.

◆ ~PartController()

PartController::~PartController ( )
protected

Definition at line 106 of file partcontroller.cpp.

Member Function Documentation

◆ activatePart()

void PartController::activatePart ( KParts::Part * part)

Definition at line 883 of file partcontroller.cpp.

◆ closeAllFiles()

bool PartController::closeAllFiles ( )

Definition at line 1239 of file partcontroller.cpp.

◆ closeAllOthers()

bool PartController::closeAllOthers ( const KURL & url)

Definition at line 1249 of file partcontroller.cpp.

◆ closeFile()

bool PartController::closeFile ( const KURL & url)

Definition at line 1234 of file partcontroller.cpp.

◆ closeFiles()

bool PartController::closeFiles ( const KURL::List & list)

Definition at line 1220 of file partcontroller.cpp.

◆ closePart()

bool PartController::closePart ( KParts::Part * part)

Definition at line 902 of file partcontroller.cpp.

◆ createInstance()

void PartController::createInstance ( TQWidget * parent)
static

Definition at line 111 of file partcontroller.cpp.

◆ documentState()

DocumentState PartController::documentState ( KURL const & url)

Definition at line 1525 of file partcontroller.cpp.

◆ editDocument()

void PartController::editDocument ( const KURL & inputUrl,
int lineNum = -1,
int col = -1 )

Definition at line 226 of file partcontroller.cpp.

◆ editDocumentInternal()

void PartController::editDocumentInternal ( const KURL & inputUrl,
int lineNum = -1,
int col = -1,
bool activate = true,
bool addToCurrentBuffer = false )

Definition at line 248 of file partcontroller.cpp.

◆ findPartFactory()

KParts::Factory * PartController::findPartFactory ( const TQString & mimeType,
const TQString & partType,
const TQString & preferredName = TQString() )

Definition at line 586 of file partcontroller.cpp.

◆ getInstance()

PartController * PartController::getInstance ( )
static

Definition at line 118 of file partcontroller.cpp.

◆ integrateTextEditorPart()

void PartController::integrateTextEditorPart ( KTextEditor::Document * doc)

Definition at line 718 of file partcontroller.cpp.

◆ openTextDocument()

KTextEditor::Editor * PartController::openTextDocument ( bool activate = true)

Definition at line 1790 of file partcontroller.cpp.

◆ openURLs()

KURL::List PartController::openURLs ( )

Definition at line 1556 of file partcontroller.cpp.

◆ partForURL()

KParts::ReadOnlyPart * PartController::partForURL ( const KURL & url)

Definition at line 857 of file partcontroller.cpp.

◆ partForWidget()

KParts::Part * PartController::partForWidget ( const TQWidget * widget)

Definition at line 869 of file partcontroller.cpp.

◆ qtDesignerPart()

KParts::ReadOnlyPart * PartController::qtDesignerPart ( )

Definition at line 1778 of file partcontroller.cpp.

◆ querySaveFiles()

bool PartController::querySaveFiles ( )

Definition at line 1163 of file partcontroller.cpp.

◆ readyToClose()

bool PartController::readyToClose ( )

Definition at line 1299 of file partcontroller.cpp.

◆ reloadFile()

void PartController::reloadFile ( const KURL & url)

Definition at line 992 of file partcontroller.cpp.

◆ revertAllFiles()

void PartController::revertAllFiles ( )

Definition at line 1040 of file partcontroller.cpp.

◆ revertFiles()

void PartController::revertFiles ( const KURL::List & list)

Definition at line 1030 of file partcontroller.cpp.

◆ saveAllFiles()

bool PartController::saveAllFiles ( )

Definition at line 1146 of file partcontroller.cpp.

◆ saveFile()

bool PartController::saveFile ( const KURL & url,
bool force = false )

Definition at line 1092 of file partcontroller.cpp.

◆ saveFiles()

bool PartController::saveFiles ( const KURL::List & list)

Definition at line 1151 of file partcontroller.cpp.

◆ scrollToLineColumn()

void PartController::scrollToLineColumn ( const KURL & url,
int lineNum = -1,
int col = -1,
bool storeHistory = false )

Definition at line 237 of file partcontroller.cpp.

◆ setEncoding()

void PartController::setEncoding ( const TQString & encoding)

Definition at line 183 of file partcontroller.cpp.

◆ showDocument()

void PartController::showDocument ( const KURL & url,
bool newWin = false )

Definition at line 556 of file partcontroller.cpp.

◆ showPart()

void PartController::showPart ( KParts::Part * part,
const TQString & name,
const TQString & shortDescription )
Todo
error handling

Definition at line 1332 of file partcontroller.cpp.

◆ slotActivePartChanged

void PartController::slotActivePartChanged ( KParts::Part * part)
slot

Definition at line 1308 of file partcontroller.cpp.

◆ slotCloseAllWindows

void PartController::slotCloseAllWindows ( )
slot

Definition at line 1244 of file partcontroller.cpp.

◆ slotCloseOtherWindows

void PartController::slotCloseOtherWindows ( )
slot

Definition at line 1258 of file partcontroller.cpp.

◆ slotCloseWindow

void PartController::slotCloseWindow ( )
slot

Definition at line 1045 of file partcontroller.cpp.

◆ slotReload

void PartController::slotReload ( )
slot

Definition at line 1077 of file partcontroller.cpp.

◆ slotSave

void PartController::slotSave ( )
slot

Definition at line 1067 of file partcontroller.cpp.

◆ splitCurrentDocument()

void PartController::splitCurrentDocument ( const KURL & inputUrl,
int lineNum = -1,
int col = -1 )

Definition at line 231 of file partcontroller.cpp.


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

KDevelop Generic Shell

Skip menu "KDevelop Generic Shell"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Generic Shell

Skip menu "KDevelop Generic Shell"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Generic Shell by doxygen 1.15.0
This website is maintained by Timothy Pearson.