Debian Codegraph @

src/af/xap/cocoa/xap_CocoaDlg_Image.h

raw
1 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
2 /* AbiWord
3 * Copyright (C) 2001 Dom Lachowicz
4 * Copyright (C) 2001, 2003, 2009 Hubert Figuiere
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 * 02110-1301 USA.
20 */
21
22 #ifndef XAP_COCOADIALOG_IMAGE_H
23 #define XAP_COCOADIALOG_IMAGE_H
24
25 #include "xap_Dlg_Image.h"
26
27 class XAP_CocoaFrame;
28 @class XAP_CocoaDialog_ImageController;
29
30 /*****************************************************************/
31
32 class XAP_CocoaDialog_Image: public XAP_Dialog_Image
33 {
34 public:
35 XAP_CocoaDialog_Image(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
36
37 virtual ~XAP_CocoaDialog_Image(void);
38
39 virtual void runModal(XAP_Frame * pFrame);
40
41 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
42
43 void event_Ok ();
44 void event_Cancel ();
45 void aspectCheckbox();
46 void doWidthSpin(bool bIncrement);
47 void doHeightSpin(bool bIncrement);
48 void doHeightEntry(void);
49 void setHeightEntry(void);
50 void setWidthEntry(void);
51 void doWidthEntry(void);
52 void adjustHeightForAspect(void);
53 void adjustWidthForAspect(void);
54
55 void wrappingChanged(void);
56 private:
57 void setWrappingGUI();
58 void setPositionToGUI();
59
60 double m_dHeightWidth;
61
62 XAP_CocoaDialog_ImageController *m_dlg;
63 };
64
65 #endif /* XAP_COCOADIALOG_IMAGE_H */