summaryrefslogtreecommitdiffstats
path: root/kate/app/katesessionpanel.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2016-05-23 16:17:18 +1000
committerMichele Calgaro <michele.calgaro@yahoo.it>2016-05-23 16:17:18 +1000
commit8644afed0d8e383cf3576c598b2ca76833a74e33 (patch)
tree720198d0f64d169f1b241d1cf02110c494e4ec20 /kate/app/katesessionpanel.h
parent074f8c7ccb685fb9fa2a51dec5049637e727a9c2 (diff)
downloadtdebase-8644afed0d8e383cf3576c598b2ca76833a74e33.tar.gz
tdebase-8644afed0d8e383cf3576c598b2ca76833a74e33.zip
Kate session panel: added support for switch/shutdown session options and fixed up logic where required.
Fixed Kate quit process to support correct shutdown. Improved handling of configuration option changes. Some code rework. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kate/app/katesessionpanel.h')
-rw-r--r--kate/app/katesessionpanel.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/kate/app/katesessionpanel.h b/kate/app/katesessionpanel.h
index 6899d68e9..4b4f47236 100644
--- a/kate/app/katesessionpanel.h
+++ b/kate/app/katesessionpanel.h
@@ -42,6 +42,7 @@ class TDEActionCollection;
//BEGIN KateSessionNameChooser
//FIXME create one single KateSessionNameChooser and reuse it all the time
+//FIXME improve string to distinguish between new session and saving an unnamed session
class KateSessionNameChooser : public KDialogBase
{
Q_OBJECT
@@ -141,16 +142,16 @@ class KateSessionPanel : public TQVBox
protected:
void setup_toolbar();
- /* In case the current session is still volatile, asks the user whether
- he wants to save or discard the session.
+ /* Checks the session switch option. If the choice is 'ask user',
+ opens a dialog and asks the user what to do.
Returns one of the following:
- KMessageBox::Cancel : the user wants to abort the current operation
- KMessageBox::No : the user wants to discard the session and continue
- KMessageBox::Yes : the user wants to save the session and continue
- In case the user decides to save the session, the function also sets
- the new session name provided in the dialog box.
+ If the current session is volatile and the session needs to be saved,
+ it will also ask the user to provide a session name.
*/
- int handleVolatileSession();
+ int handleSessionSwitch();
KateMainWindow *m_mainWin;
KateViewManager *m_viewManager;