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)
int getSessionIdFromName(const TQString &name)
Return the session id of the first session whose name matches the provided one.
Definition: katesession.cpp:568
void load(bool includeGUIInfo)
Load session info from the saved file.
Definition: katesession.cpp:132
void switchOptionChanged()
Emitted when the session switch option has been set/changed.
void saveActiveSession()
Saves the active session sessionSaved (through invoked "void saveSession(int)" method) ...
Definition: katesession.h:339
bool activateSession(int sessionId, bool saveCurr=true)
Activate the selected session.
Definition: katesession.cpp:583
TQPtrList< KateSession > & getSessionsList()
Definition: katesession.h:290
void updateSessionOptions(int optionType)
Updated the session startup and switch options.
Definition: katesession.cpp:395
const TQString & getSessionName(int sessionId)
Definition: katesession.cpp:546
void moveSessionForward(int sessionId)
Move the specified session forward in the session list (by one position)
Definition: katesession.cpp:772
void setSessionReadOnlyStatus(int sessionId, bool readOnly)
Set the read only status of the specified session.
Definition: katesession.cpp:806
bool deleteSession(int sessionId, int actSessId)
Delete the specified session.
Definition: katesession.cpp:694
void swapSessionsPosition(int sessionId1, int sessionId2)
Swap the position of the two specified sessions in the session list.
Definition: katesession.cpp:734
void moveSessionBackward(int sessionId)
Move the specified session backward in the session list (by one position)
Definition: katesession.cpp:783
void reloadActiveSession()
Restore the current active session to the last saved state.
Definition: katesession.h:326
void sessionSaved(int sessionId)
Emitted once a session has been saved.
void setSessionName(const TQString &sessionName)
Set the new session name.
Definition: katesession.cpp:120
void sessionRenamed(int sessionId)
Emitted once a session has been renamed.
void setSwitchOption(int option)
Set the new session switch preference.
Definition: katesession.cpp:538
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
int cloneSession(int sessionId, const TQString &sessionName=TQString::null, bool activate=true, bool deleteCurr=false)
Create a new session and activate it if required.
Definition: katesession.cpp:646
void sessionActivated(int newSessionId, int oldSessionId)
Emitted once a session has been activated.
void save(bool saveGUIInfo, bool setReadOnly=false)
Save session info.
Definition: katesession.cpp:198
const TQString & getSessionFilename() const
Definition: katesession.h:97
void saveSessionOptions(int optionType)
Save the session startup and switch options to the config file.
Definition: katesession.cpp:442
int newSession(const TQString &sessionName=TQString::null, bool saveCurr=true)
Create a new session and activate it.
Definition: katesession.cpp:636
KateSession * getSessionFromId(int sessionId)
Definition: katesession.cpp:557
void sessionsSwapped(int sessionIdMin, int sessionIdMax)
Emitted once the position of the two sessions have been swapped.
void sessionCreated(int sessionId)
Emitted once a session has been created.
void renameSession(int sessionId, const TQString &newSessionName)
Rename the specified session.
Definition: katesession.cpp:794
const TQString & getActiveSessionName()
Definition: katesession.h:258
void sessionDeleted(int sessionId)
Emitted once a session has been deleted.
Trinity API Reference