~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to src/Plugins/Qt/qt_widget.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA, Kamaraju Kusumanchi, kohda
  • Date: 2009-04-26 19:35:14 UTC
  • mfrom: (1.1.10 upstream) (4.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090426193514-9yo3oggdslgdls4b
Tags: 1:1.0.7.2-1
[Kamaraju Kusumanchi <kamaraju@gmail.com>]
* New upstream release
* texmacs crashes if /usr/share/texmacs/TeXmacs/misc/pixmaps/unknown.ps
  is not present. Do not remove it. (Closes: #484073, #497021)
* update patches 03_mupad.dpatch, 04_axiom.dpatch, 11-desktop-file.dpatch
* fix the mime problem in gnome. Thanks to Andrea Gamba for the fix.
[kohda]
* Refined a fix for the mime problem in gnome a bit.
* Try to fix /bin/sh problem (debian/fixsh) but it is not complete fix yet.
* Try to fix hard coded settings for ipa fonts(patches/09_ipa.dpatch), 
  especially for Debian where no ipa fonts exist yet.
* Fixed obsolete Build-Depends: changed libltdl3-dev to 
  libltdl-dev | libltdl7-dev (the latter for Ubuntu?)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
* DESCRIPTION: QT widget class
5
5
* COPYRIGHT  : (C) 2008  Massimiliano Gubinelli
6
6
*******************************************************************************
7
 
* This software falls under the GNU general public license and comes WITHOUT
8
 
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
9
 
* If you don't have this file, write to the Free Software Foundation, Inc.,
10
 
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7
* This software falls under the GNU general public license version 3 or later.
 
8
* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
 
9
* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
11
10
******************************************************************************/
12
11
 
13
12
#ifndef QT_WIDGET_HPP
14
13
#define QT_WIDGET_HPP
15
14
 
 
15
 
16
16
#include "widget.hpp"
 
17
#include "basic_renderer.hpp"
17
18
#include <QWidget>
18
19
#include <QAction>
19
20
 
21
22
 
22
23
class qt_widget_rep : public widget_rep {
23
24
public:
24
 
        qt_widget_rep() : widget_rep () { };
 
25
  qt_widget_rep() : widget_rep () { };
25
26
        
26
 
        virtual widget plain_window_widget (string s); 
27
 
        virtual widget make_popup_widget (); 
28
 
        virtual widget popup_window_widget (string s); 
 
27
  virtual widget plain_window_widget (string s); 
 
28
  virtual widget make_popup_widget (); 
 
29
  virtual widget popup_window_widget (string s); 
29
30
 
30
 
        virtual QAction *as_qaction() { return NULL; };
31
 
 
32
 
//  virtual TMMenuItem *as_menuitem() { return NULL; };
33
 
 
 
31
  virtual QAction *as_qaction() { return NULL; };
 
32
  // virtual TMMenuItem *as_menuitem() { return NULL; };
34
33
};
35
34
 
36
 
 
37
 
 
38
 
 
39
35
class qt_view_widget_rep: public qt_widget_rep {
40
36
public: 
41
 
        QWidget *view;
42
 
 
 
37
  QWidget *view;
 
38
  basic_renderer current_renderer;
 
39
  
43
40
public:
44
41
  qt_view_widget_rep (QWidget *v);
45
42
  ~qt_view_widget_rep ();
60
57
    // deconnect a state slot s from another slot s2 of another widget w2
61
58
 
62
59
        virtual widget plain_window_widget (string s); 
63
 
 
 
60
  void set_current_renderer(basic_renderer _r) { current_renderer = _r;  }
 
61
  basic_renderer get_current_renderer() {  return current_renderer; }
64
62
};
65
63
 
66
64
class qt_widget {
67
65
public:
68
 
        ABSTRACT_NULL(qt_widget);
 
66
ABSTRACT_NULL(qt_widget);
69
67
  inline bool operator == (qt_widget w) { return rep == w.rep; }
70
68
  inline bool operator != (qt_widget w) { return rep != w.rep; }
71
69
};