~ubuntu-branches/ubuntu/trusty/bibletime/trusty

« back to all changes in this revision

Viewing changes to src/frontend/mainindex/bookmarks/btbookmarkfolder.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Marsden
  • Date: 2009-11-18 17:30:00 UTC
  • mfrom: (1.3.4 upstream) (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091118173000-endkhjz5qai88tvr
Tags: 2.4-1
* New upstream version 2.4
* debian/control: 
  - Replace incorrect bibletime-data Depends on lib4qt-gui
    with bibletime Depends on libqtgui4 (>= 4.4.0). (Closes: #556209).
  - Add Build-depends: on zlib1g-dev and libcurl4-gnutls-dev 
    (Closes: #556805).

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#ifndef BTBOOKMARKFOLDER_H
11
11
#define BTBOOKMARKFOLDER_H
12
12
 
13
 
#include "btbookmarkitembase.h"
 
13
#include "frontend/mainindex/bookmarks/btbookmarkitembase.h"
 
14
 
14
15
 
15
16
#define CURRENT_SYNTAX_VERSION 1
16
17
 
17
 
 
18
 
class BtBookmarkFolder : public BtBookmarkItemBase
19
 
{
20
 
public:
21
 
        friend class BtBookmarkLoader;
22
 
        BtBookmarkFolder(QTreeWidgetItem* parent, QString name);
23
 
        ~BtBookmarkFolder() {}
24
 
 
25
 
        /** See the base class. */
26
 
        virtual bool enableAction(const MenuAction action);
27
 
 
28
 
        /** User gives a file from which to load items into this folder. */
29
 
        virtual void exportBookmarks();
30
 
        /** User gives a file to which items from this folder are saved. */
31
 
        virtual void importBookmarks();
32
 
 
33
 
        /** Creates a new folder under this. */
34
 
        void newSubFolder();
35
 
 
36
 
        /** Returns a list of direct childs of this item. */
37
 
        QList<QTreeWidgetItem*> getChildList() const;
38
 
 
39
 
        /** Returns true if the given item is this or a direct or indirect subitem of this. */
40
 
        bool hasDescendant(QTreeWidgetItem* item) const;
41
 
 
42
 
        /** Creates a deep copy of this item. */
43
 
        BtBookmarkFolder* deepCopy();
44
 
 
45
 
        void rename();
46
 
        void update();
47
 
 
48
 
        QString toolTip();
 
18
class BtBookmarkFolder : public BtBookmarkItemBase {
 
19
    public:
 
20
        friend class BtBookmarkLoader;
 
21
        BtBookmarkFolder(QTreeWidgetItem* parent, QString name);
 
22
        ~BtBookmarkFolder() {}
 
23
 
 
24
        /** See the base class. */
 
25
        virtual bool enableAction(const MenuAction action);
 
26
 
 
27
        /** User gives a file from which to load items into this folder. */
 
28
        virtual void exportBookmarks();
 
29
        /** User gives a file to which items from this folder are saved. */
 
30
        virtual void importBookmarks();
 
31
 
 
32
        /** Creates a new folder under this. */
 
33
        void newSubFolder();
 
34
 
 
35
        /** Returns a list of direct childs of this item. */
 
36
        QList<QTreeWidgetItem*> getChildList() const;
 
37
 
 
38
        /** Returns true if the given item is this or a direct or indirect subitem of this. */
 
39
        bool hasDescendant(QTreeWidgetItem* item) const;
 
40
 
 
41
        /** Creates a deep copy of this item. */
 
42
        BtBookmarkFolder* deepCopy();
 
43
 
 
44
        void rename();
 
45
        void update();
 
46
 
 
47
        QString toolTip();
49
48
};
50
49
 
51
50
#endif