• 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>

Inherits KDevPartController.

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 92 of file partcontroller.cpp.

◆ ~PartController()

PartController::~PartController ( )
protected

Definition at line 107 of file partcontroller.cpp.

Member Function Documentation

◆ activatePart()

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

Definition at line 884 of file partcontroller.cpp.

◆ closeAllFiles()

bool PartController::closeAllFiles ( )

Definition at line 1240 of file partcontroller.cpp.

◆ closeAllOthers()

bool PartController::closeAllOthers ( const KURL &  url)

Definition at line 1250 of file partcontroller.cpp.

◆ closeFile()

bool PartController::closeFile ( const KURL &  url)

Definition at line 1235 of file partcontroller.cpp.

◆ closeFiles()

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

Definition at line 1221 of file partcontroller.cpp.

◆ closePart()

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

Definition at line 903 of file partcontroller.cpp.

◆ createInstance()

void PartController::createInstance ( TQWidget *  parent)
static

Definition at line 112 of file partcontroller.cpp.

◆ documentState()

DocumentState PartController::documentState ( KURL const &  url)

Definition at line 1526 of file partcontroller.cpp.

◆ editDocument()

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

Definition at line 227 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 249 of file partcontroller.cpp.

◆ findPartFactory()

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

Definition at line 587 of file partcontroller.cpp.

◆ getInstance()

PartController * PartController::getInstance ( )
static

Definition at line 119 of file partcontroller.cpp.

◆ integrateTextEditorPart()

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

Definition at line 719 of file partcontroller.cpp.

◆ openTextDocument()

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

Definition at line 1791 of file partcontroller.cpp.

◆ openURLs()

KURL::List PartController::openURLs ( )

Definition at line 1557 of file partcontroller.cpp.

◆ partForURL()

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

Definition at line 858 of file partcontroller.cpp.

◆ partForWidget()

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

Definition at line 870 of file partcontroller.cpp.

◆ qtDesignerPart()

KParts::ReadOnlyPart * PartController::qtDesignerPart ( )

Definition at line 1779 of file partcontroller.cpp.

◆ querySaveFiles()

bool PartController::querySaveFiles ( )

Definition at line 1164 of file partcontroller.cpp.

◆ readyToClose()

bool PartController::readyToClose ( )

Definition at line 1300 of file partcontroller.cpp.

◆ reloadFile()

void PartController::reloadFile ( const KURL &  url)

Definition at line 993 of file partcontroller.cpp.

◆ revertAllFiles()

void PartController::revertAllFiles ( )

Definition at line 1041 of file partcontroller.cpp.

◆ revertFiles()

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

Definition at line 1031 of file partcontroller.cpp.

◆ saveAllFiles()

bool PartController::saveAllFiles ( )

Definition at line 1147 of file partcontroller.cpp.

◆ saveFile()

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

Definition at line 1093 of file partcontroller.cpp.

◆ saveFiles()

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

Definition at line 1152 of file partcontroller.cpp.

◆ scrollToLineColumn()

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

Definition at line 238 of file partcontroller.cpp.

◆ setEncoding()

void PartController::setEncoding ( const TQString &  encoding)

Definition at line 184 of file partcontroller.cpp.

◆ showDocument()

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

Definition at line 557 of file partcontroller.cpp.

◆ showPart()

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

Definition at line 1333 of file partcontroller.cpp.

◆ slotActivePartChanged

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

Definition at line 1309 of file partcontroller.cpp.

◆ slotCloseAllWindows

void PartController::slotCloseAllWindows ( )
slot

Definition at line 1245 of file partcontroller.cpp.

◆ slotCloseOtherWindows

void PartController::slotCloseOtherWindows ( )
slot

Definition at line 1259 of file partcontroller.cpp.

◆ slotCloseWindow

void PartController::slotCloseWindow ( )
slot

Definition at line 1046 of file partcontroller.cpp.

◆ slotReload

void PartController::slotReload ( )
slot

Definition at line 1078 of file partcontroller.cpp.

◆ slotSave

void PartController::slotSave ( )
slot

Definition at line 1068 of file partcontroller.cpp.

◆ splitCurrentDocument()

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

Definition at line 232 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.9.8
This website is maintained by Timothy Pearson.