~ubuntu-branches/ubuntu/utopic/smb4k/utopic-proposed

« back to all changes in this revision

Viewing changes to smb4k/sharesview/smb4kshareslistview.h

  • Committer: Package Import Robot
  • Author(s): Fathi Boudra
  • Date: 2012-05-19 18:54:34 UTC
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: package-import@ubuntu.com-20120519185434-kpqpdrg5i47zm7tl
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
    smb4kshareslistview  -  This is the shares list view of Smb4K.
3
3
                             -------------------
4
4
    begin                : Sa Jun 30 2007
5
 
    copyright            : (C) 2007-2008 by Alexander Reinholdt
6
 
    email                : dustpuppy@users.berlios.de
 
5
    copyright            : (C) 2007-2010 by Alexander Reinholdt
 
6
    email                : alexander.reinholdt@kdemail.net
7
7
 ***************************************************************************/
8
8
 
9
9
/***************************************************************************
38
38
 
39
39
// forward declarations
40
40
class Smb4KSharesListViewItem;
41
 
class Smb4KSharesViewToolTip;
 
41
class Smb4KToolTip;
42
42
 
43
43
/**
44
44
 * This widget class provides the shares list view of Smb4K.
85
85
                   Usage = 6 };
86
86
#endif
87
87
 
88
 
    /**
89
 
     * Update the tool tip if it exists. This function just executes
90
 
     * Smb4KSharesListViewToolTip::update().
91
 
     */
92
 
    void updateToolTip();
93
 
 
 
88
  /**
 
89
   * Returns a pointer to the tooltip.
 
90
   * 
 
91
   * @returns a pointer to the tooltip.
 
92
   */
 
93
  Smb4KToolTip *tooltip() { return m_tooltip; }
 
94
  
94
95
  signals:
95
96
    /**
96
97
     * This signal is emitted when an item has been executed.
115
116
 
116
117
  protected:
117
118
    /**
 
119
     * Reimplemented from QTreeWidget.
 
120
     */
 
121
    bool event( QEvent *e );
 
122
 
 
123
    /**
118
124
     * Reimplemented from QTreeWidget. This function is used to
119
125
     * show the tooltips.
120
126
     */
215
221
    void slotViewportEntered();
216
222
 
217
223
    /**
218
 
     * This slot shows the tool tip.
219
 
     */
220
 
    void slotShowToolTip();
221
 
 
222
 
    /**
223
 
     * This slot hides and clears the tool tip.
224
 
     */
225
 
    void slotHideToolTip();
226
 
 
227
 
    /**
228
224
     * This slot is used to adjust to KDE's settings.
229
225
     *
230
226
     * @param category      The category where the settings changed.
238
234
 
239
235
  private:
240
236
    /**
241
 
     * The current global mouse position
242
 
     */
243
 
    QPoint m_pos;
244
 
 
245
 
    /**
246
237
     * The tool tip
247
238
     */
248
 
    Smb4KSharesViewToolTip *m_tooltip;
249
 
 
250
 
    /**
251
 
     * The tool tip timer.
252
 
     */
253
 
    QTimer *m_tooltip_timer;
 
239
    Smb4KToolTip *m_tooltip;
254
240
 
255
241
    /**
256
242
     * Auto-selection timer