~ubuntu-branches/ubuntu/saucy/kate/saucy

« back to all changes in this revision

Viewing changes to part/kte5/messageinterface.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell, Rohan Garg, Jonathan Riddell
  • Date: 2013-06-21 00:48:29 UTC
  • mfrom: (1.1.28)
  • Revision ID: package-import@ubuntu.com-20130621004829-y2ui02eg0j47h94y
Tags: 4:4.10.80-0ubuntu1
[ Rohan Garg ]
* New upstream release
  - Update and sort install files
  - Drop kubuntu_pate_find_python.diff, kubuntu_kate_initial_preference.patch,
    kubuntu_find_python.diff from debian/patches , not required

[ Jonathan Riddell ]
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <QtCore/QList>
26
26
#include <QtGui/QAction>
27
27
 
 
28
#include "katepartprivate_export.h"
 
29
 
28
30
namespace KTextEditor {
29
31
 
30
32
class View;
31
33
class Document;
32
34
 
33
 
//
34
 
// TODOs and Ideas:
35
 
// - turn FloatInView into TopRightInView, BottomRightInView, or Qt::Alignment?
36
 
//
37
 
 
38
35
/**
39
36
 * @brief This class holds a Message to display in View%s.
40
37
 *
90
87
 * @author Dominik Haumann \<dhaumann@kde.org\>
91
88
 * @since KDE 4.10
92
89
 */
93
 
class Message : public QObject
 
90
class KATEPART_TESTS_EXPORT Message : public QObject
94
91
{
95
92
  Q_OBJECT
96
93
 
117
114
    enum MessagePosition {
118
115
      AboveView = 0, ///< show message above view
119
116
      BelowView,     ///< show message below view
120
 
      FloatInView    ///< show message as view overlay
 
117
      TopInView,     ///< show message as view overlay in the top right corner
 
118
      BottomInView   ///< show message as view overlay om the bottom right corner
121
119
    };
122
120
 
123
121
    /**
200
198
     */
201
199
    int autoHide() const;
202
200
 
203
 
     /**
 
201
    /**
204
202
     * Sets the autoHide mode to @p mode.
205
203
     * The default mode is set to AutoHideMode::AfterUserInteraction.
206
204
     * @param mode autoHide mode
219
217
     * Enabled word wrap according to @p wordWrap.
220
218
     * By default, auto wrap is disabled.
221
219
     *
222
 
     * If the text of the message is long, always enable auto wrap, as
223
 
     * otherwise the layout of the gui breaks.
 
220
     * Word wrap is enabled automatically, if the Message's width is larger than
 
221
     * the parent widget's width to avoid breaking the gui layout.
224
222
     *
225
223
     * @see wordWrap()
226
224
     */