• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_CocoaDlg_Image.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 /* AbiWord
00003  * Copyright (C) 2001 Dom Lachowicz
00004  * Copyright (C) 2001, 2003, 2009 Hubert Figuiere
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301 USA.
00020  */
00021 
00022 #ifndef XAP_COCOADIALOG_IMAGE_H
00023 #define XAP_COCOADIALOG_IMAGE_H
00024 
00025 #include "xap_Dlg_Image.h"
00026 
00027 class XAP_CocoaFrame;
00028 @class XAP_CocoaDialog_ImageController;
00029 
00030 /*****************************************************************/
00031 
00032 class XAP_CocoaDialog_Image: public XAP_Dialog_Image
00033 {
00034 public:
00035     XAP_CocoaDialog_Image(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
00036 
00037     virtual ~XAP_CocoaDialog_Image(void);
00038 
00039     virtual void            runModal(XAP_Frame * pFrame);
00040 
00041     static XAP_Dialog *     static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
00042 
00043     void    event_Ok ();
00044     void    event_Cancel ();
00045     void    aspectCheckbox();
00046     void    doWidthSpin(bool bIncrement);
00047     void    doHeightSpin(bool bIncrement);
00048     void    doHeightEntry(void);
00049     void    setHeightEntry(void);
00050     void    setWidthEntry(void);
00051     void    doWidthEntry(void);
00052     void    adjustHeightForAspect(void);
00053     void    adjustWidthForAspect(void);
00054 
00055     void wrappingChanged(void);
00056 private:
00057     void setWrappingGUI();
00058     void setPositionToGUI();
00059 
00060     double      m_dHeightWidth;
00061 
00062     XAP_CocoaDialog_ImageController *m_dlg;
00063 };
00064 
00065 #endif /* XAP_COCOADIALOG_IMAGE_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1