KonqViewManager Class Reference

List of all members.

Public Member Functions

 KonqViewManager (KonqMainWindow *mainWindow)
KonqViewInitialize (const TQString &serviceType, const TQString &serviceName)
KonqViewsplitView (Qt::Orientation orientation, const TQString &serviceType=TQString::null, const TQString &serviceName=TQString::null, bool newOneFirst=false, bool forceAutoEmbed=false)
KonqViewsplitWindow (Qt::Orientation orientation, const TQString &serviceType=TQString::null, const TQString &serviceName=TQString::null, bool newOneFirst=false)
void convertDocContainer ()
KonqViewaddTab (const TQString &serviceType=TQString::null, const TQString &serviceName=TQString::null, bool passiveMode=false, bool openAfterCurrentPage=false)
void duplicateTab (KonqFrameBase *tab=0L, bool openAfterCurrentPage=false)
KonqViewaddTabFromHistory (int steps, bool openAfterCurrentPage)
void breakOffTab (KonqFrameBase *tab=0L)
void removeView (KonqView *view)
void removeTab (KonqFrameBase *tab=0L)
void removeOtherTabs (KonqFrameBase *tab=0L)
void activateNextTab ()
void activatePrevTab ()
void activateTab (int position)
void moveTabBackward ()
void moveTabForward ()
void reloadAllTabs ()
void showTab (KonqView *view)
void updatePixmaps ()
void saveViewProfile (KConfig &cfg, bool saveURLs, bool saveWindowSize)
void saveViewProfile (const TQString &fileName, const TQString &profileName, bool saveURLs, bool saveWindowSize)
void loadViewProfile (KConfig &cfg, const TQString &filename, const KURL &forcedURL=KURL(), const KonqOpenURLRequest &req=KonqOpenURLRequest(), bool resetWindow=false, bool openURL=true)
void loadViewProfile (const TQString &path, const TQString &filename, const KURL &forcedURL=KURL(), const KonqOpenURLRequest &req=KonqOpenURLRequest(), bool resetWindow=false, bool openURL=true)
TQString currentProfile () const
TQString currentProfileText () const
bool isLoadingProfile () const
void clear ()
KonqViewchooseNextView (KonqView *view)
void viewCountChanged ()
void setProfiles (KActionMenu *profiles)
void profileListDirty (bool broadcast=true)
KonqFrameBasedocContainer () const
void setDocContainer (KonqFrameBase *docContainer)
KonqMainWindowmainWindow () const
virtual void removePart (KParts::Part *part)
virtual void setActivePart (KParts::Part *part, TQWidget *widget=0L)
void setActivePart (KParts::Part *part, bool immediate)
void showProfileDlg (const TQString &preselectProfile)
void printFullHierarchy (KonqFrameContainerBase *container)
void setLoading (KonqView *view, bool loading)
void showHTML (bool b)
TQString profileHomeURL () const

Static Public Member Functions

static TQSize readConfigSize (KConfig &cfg, TQWidget *widget=NULL)

Protected Slots

void emitActivePartChanged ()
void slotProfileDlg ()
void slotProfileActivated (int id)
void slotProfileListAboutToShow ()
void slotPassiveModePartDeleted ()
void slotActivePartChanged (KParts::Part *newPart)

Protected Member Functions

void loadItem (KConfig &cfg, KonqFrameContainerBase *parent, const TQString &name, const KURL &defaultURL, bool openURL, bool openAfterCurrentPage=false)
virtual void setActiveInstance (KInstance *)

Member Function Documentation

void KonqViewManager::activateNextTab (  ) 

Locates and activates the next tab

void KonqViewManager::activatePrevTab (  ) 

Locates and activates the previous tab

void KonqViewManager::activateTab ( int  position  ) 

Activate given tab

KonqView * KonqViewManager::addTab ( const TQString &  serviceType = TQString::null,
const TQString &  serviceName = TQString::null,
bool  passiveMode = false,
bool  openAfterCurrentPage = false 
)

Adds a tab to m_pMainContainer

KonqView * KonqViewManager::addTabFromHistory ( int  steps,
bool  openAfterCurrentPage 
)

creates a new tab from a history entry used for MMB on back/forward

void KonqViewManager::breakOffTab ( KonqFrameBase tab = 0L  ) 

Break the current tab off into a new window, if none is specified, the current one is used

void KonqViewManager::convertDocContainer (  ) 

Converts a Container or View docContainer into a Tabs

TQString KonqViewManager::currentProfile (  )  const [inline]

Return the filename of the last profile that was loaded by the view manager. For "save settings".

TQString KonqViewManager::currentProfileText (  )  const [inline]

Return the name (i18n'ed) of the last profile that was loaded by the view manager. For "save settings".

void KonqViewManager::duplicateTab ( KonqFrameBase tab = 0L,
bool  openAfterCurrentPage = false 
)

Duplicates the specified tab, or else the current one if none is specified

bool KonqViewManager::isLoadingProfile (  )  const [inline]

Whether we are currently loading a profile

void KonqViewManager::loadItem ( KConfig &  cfg,
KonqFrameContainerBase parent,
const TQString &  name,
const KURL &  defaultURL,
bool  openURL,
bool  openAfterCurrentPage = false 
) [protected]

Load the config entries for a view.

Parameters:
cfg the config file ...
defaultURL the URL to use if the profile doesn't contain urls
openURL whether to open urls at all (from the profile or using defaultURL). (this is set to false when we have a forcedURL to open)
void KonqViewManager::loadViewProfile ( const TQString &  path,
const TQString &  filename,
const KURL &  forcedURL = KURL(),
const KonqOpenURLRequest req = KonqOpenURLRequest(),
bool  resetWindow = false,
bool  openURL = true 
)

Loads a view layout from a config file. Removes all views before loading.

Parameters:
path the full path to the config file
filename if set, remember the file name of the profile (for save settings) It has to be under the profiles dir. Otherwise, set to TQString::null
forcedURL if set, the URL to open, whatever the profile says
req attributes related to forcedURL
resetWindow if the profile doesn't have attributes like size or toolbar settings, they will be reset to the defaults
void KonqViewManager::loadViewProfile ( KConfig &  cfg,
const TQString &  filename,
const KURL &  forcedURL = KURL(),
const KonqOpenURLRequest req = KonqOpenURLRequest(),
bool  resetWindow = false,
bool  openURL = true 
)

Loads a view layout from a config file. Removes all views before loading.

Parameters:
cfg the config file
filename if set, remember the file name of the profile (for save settings) It has to be under the profiles dir. Otherwise, set to TQString::null
forcedURL if set, the URL to open, whatever the profile says
req attributes related to forcedURL
resetWindow if the profile doesn't have attributes like size or toolbar settings, they will be reset to the defaults
TQSize KonqViewManager::readConfigSize ( KConfig &  cfg,
TQWidget widget = NULL 
) [static]

The widget is the one which you are referring to.

void KonqViewManager::removeOtherTabs ( KonqFrameBase tab = 0L  ) 

Removes all, but the specified tab. If no tab is specified every tab, but the current will be removed Also takes care of setting the specified tab as active if the active view was not in this tab

void KonqViewManager::removePart ( KParts::Part *  part  )  [virtual]

Reimplemented from PartManager

void KonqViewManager::removeTab ( KonqFrameBase tab = 0L  ) 

Removes specified tab, if none is specified it remvoe the current tab Also takes care of setting another view as active if the active view was in this tab

void KonqViewManager::removeView ( KonqView view  ) 

Guess!:-) Also takes care of setting another view as active if view was the active view

void KonqViewManager::saveViewProfile ( const TQString &  fileName,
const TQString &  profileName,
bool  saveURLs,
bool  saveWindowSize 
)

Saves the current view layout to a config file. Remove config file before saving, especially if saveURLs is false.

Parameters:
fileName the name of the config file
profileName the name of the profile
saveURLs whether to save the URLs in the profile
saveWindowSize whether to save the size of the window in the profile
void KonqViewManager::saveViewProfile ( KConfig &  cfg,
bool  saveURLs,
bool  saveWindowSize 
)

Saves the current view layout to a config file. Remove config file before saving, especially if saveURLs is false.

Parameters:
cfg the config file
saveURLs whether to save the URLs in the profile
saveWindowSize whether to save the size of the window in the profile
void KonqViewManager::setActivePart ( KParts::Part *  part,
TQWidget widget = 0L 
) [virtual]

Reimplemented from PartManager

void KonqViewManager::showTab ( KonqView view  ) 

Brings the tab specified by view to the front of the stack

KonqView * KonqViewManager::splitView ( Qt::Orientation  orientation,
const TQString &  serviceType = TQString::null,
const TQString &  serviceName = TQString::null,
bool  newOneFirst = false,
bool  forceAutoEmbed = false 
)

Splits the view, depending on orientation, either horizontally or vertically. The first of the resulting views will contain the initial view, the other will be a new one, constructed from the given Service Type. If no Service Type was provided it takes the one from the current view. Returns the newly created view or 0L if the view couldn't be created.

Parameters:
newOneFirst if true, move the new view as the first one (left or top)
KonqView * KonqViewManager::splitWindow ( Qt::Orientation  orientation,
const TQString &  serviceType = TQString::null,
const TQString &  serviceName = TQString::null,
bool  newOneFirst = false 
)

Does basically the same as splitView() but inserts the new view at the top of the view tree. Returns the newly created view or 0L if the view couldn't be created.

Parameters:
newOneFirst if true, move the new view as the first one (left or top)
void KonqViewManager::updatePixmaps (  ) 

Updates favicon pixmaps used in tabs

void KonqViewManager::viewCountChanged (  ) 

Called whenever

  • the total number of views changed
  • the number of views in passive mode changed The implementation takes care of showing or hiding the statusbar indicators

The documentation for this class was generated from the following files:

Generated on Sat Oct 2 23:00:16 2010 by  doxygen 1.6.1