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