~ubuntu-branches/ubuntu/feisty/digikam/feisty

« back to all changes in this revision

Viewing changes to digikam/digikamapp.h

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2005-03-10 02:39:02 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050310023902-023nymfst5mg696c
Tags: 0.7.2-2
* debian/TODO: clean
* digikam manpage: better --detect-camera description

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                          digikamapp.h  -  description
3
 
                             -------------------
4
 
    begin                : Sat Nov 16 10:11:43 CST 2002
5
 
    copyright            : (C) 2002 by Renchi Raju
6
 
    email                : renchi@pooh.tam.uiuc.edu
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
11
 
 *   This program is free software; you can redistribute it and/or modify  *
12
 
 *   it under the terms of the GNU General Public License as published by  *
13
 
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 
 *   (at your option) any later version.                                   *
15
 
 *                                                                         *
16
 
 ***************************************************************************/
17
 
 
18
 
#ifndef DIGIKAMAPP_H
19
 
#define DIGIKAMAPP_H
20
 
 
21
 
#ifdef HAVE_CONFIG_H
22
 
#include <config.h>
23
 
#endif
24
 
 
25
 
#include <kapp.h>
26
 
#include <kmainwindow.h>
27
 
#include <qstring.h>
28
 
#include <qmap.h>
29
 
 
30
 
 
31
 
class KAction;
32
 
class KActionMenu;
33
 
class KSelectAction;
34
 
 
35
 
class CameraList;
36
 
class CameraType;
37
 
class DigikamView;
38
 
class AlbumSettings;
39
 
class DigikamPluginManager;
40
 
 
41
 
namespace Digikam
42
 
{
43
 
class AlbumManager;
44
 
}
45
 
 
46
 
class DigikamApp : public KMainWindow
47
 
{
48
 
    Q_OBJECT
49
 
 
50
 
public:
51
 
 
52
 
    DigikamApp();
53
 
    ~DigikamApp();
54
 
 
55
 
    void enableThumbSizePlusAction(bool val);
56
 
    void enableThumbSizeMinusAction(bool val);
57
 
 
58
 
private:
59
 
 
60
 
    void setupView();
61
 
    void setupActions();
62
 
 
63
 
 
64
 
protected:
65
 
 
66
 
    bool queryClose();
67
 
 
68
 
private:
69
 
 
70
 
    Digikam::AlbumManager *mAlbumManager;
71
 
    DigikamPluginManager  *pluginManager_;
72
 
    
73
 
    DigikamView*  mView;
74
 
    CameraList*   mCameraList;
75
 
    bool          mFullScreen;
76
 
 
77
 
    // Album Settings
78
 
    AlbumSettings* mAlbumSettings;
79
 
 
80
 
    // Camera Actions
81
 
    KActionMenu *mCameraMenuAction;
82
 
 
83
 
    // Album Actions
84
 
    KAction *mNewAction;
85
 
    KAction *mDeleteAction;
86
 
    KSelectAction *mAlbumSortAction;
87
 
 
88
 
    KAction *mAddImagesAction;
89
 
    KAction *mPropsEditAction;
90
 
 
91
 
    // Image Actions
92
 
    KAction *mImageViewAction;
93
 
    KAction *mImageCommentsAction;
94
 
    KAction *mImageExifAction;
95
 
    KAction *mImageRenameAction;
96
 
    KAction *mImageDeleteAction;
97
 
    KAction *mImagePropsAction;
98
 
 
99
 
    // Selection Actions
100
 
    KAction *mSelectAllAction;
101
 
    KAction *mSelectNoneAction;
102
 
    KAction *mSelectInvertAction;
103
 
 
104
 
    // View Actions
105
 
    KAction *mThumbSizePlusAction;
106
 
    KAction *mThumbSizeMinusAction;
107
 
    KAction *mFullScreenAction;
108
 
 
109
 
    // Application Actions
110
 
    KAction* mQuitAction;
111
 
    KAction* mTipAction;
112
 
 
113
 
private slots:
114
 
 
115
 
    void slot_albumSelected(bool val);
116
 
    void slot_imageSelected(bool val);
117
 
    void slot_exit();
118
 
    void slotShowTip();
119
 
    
120
 
    void slotSetup();
121
 
    void slotSetupChanged();
122
 
    
123
 
    void slotCameraConnect();
124
 
    void slotCameraAdded(CameraType *ctype);
125
 
    void slotCameraRemoved(CameraType *ctype);
126
 
    void slotEditKeys();
127
 
    void slotConfToolbars();
128
 
    void slotToggleFullScreen();
129
 
};
130
 
 
131
 
#endif