katesession.h
57 KateSession(const KateSessionManager &manager, const TQString &sessionName, const TQString &fileName);
156 //There should be only one session manager regardless of how many main windows of Kate are open.
157 //Changes should propagate to all session panels. Different Kate main windows should run different
158 //sessions. If the user switches to a session already opened in another Kate window, the other window
160 //This would allow a safe use of multiple Kate main windows/instances without overwriting session information
161 //among them. Currently the last instance/main window to be closed will overwrite the information previously
258 const TQString& getActiveSessionName() /*FIXME const*/ { return m_sessions[m_activeSessionId]->getSessionName(); }
490 KateSessionChooserItem(TQListView *listview, const TQString &sessionName, const TQString &nDoc, int sessionId)
void load(bool includeGUIInfo)
Load session info from the saved file.
Definition: katesession.cpp:132
void saveActiveSession()
Saves the active session sessionSaved (through invoked "void saveSession(int)" method) ...
Definition: katesession.h:339
TQPtrList< KateSession > & getSessionsList()
Definition: katesession.h:290
void reloadActiveSession()
Restore the current active session to the last saved state.
Definition: katesession.h:326
void setSessionName(const TQString &sessionName)
Set the new session name.
Definition: katesession.cpp:120
KateSession(const KateSessionManager &manager, const TQString &sessionName, const TQString &fileName)
create a new session and read the config from fileName if it exists
Definition: katesession.cpp:88
void save(bool saveGUIInfo, bool setReadOnly=false)
Save session info.
Definition: katesession.cpp:198
const TQString & getSessionFilename() const
Definition: katesession.h:97
const TQString & getActiveSessionName()
Definition: katesession.h:258