~ubuntu-branches/ubuntu/trusty/kvirc/trusty

« back to all changes in this revision

Viewing changes to src/modules/raweditor/libkviraweditor.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kai Wasserbäch, Kai Wasserbäch, Raúl Sánchez Siles
  • Date: 2011-02-12 10:40:21 UTC
  • mfrom: (14.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110212104021-5mh4f75jlku20mnt
The combined "Twisted Experiment" and "Nocturnal Raid" release.

[ Kai Wasserbäch ]
* Synced to upstream's SVN revision 5467.
* debian/rules:
  - Added .PHONY line.
  - Resurrect -DMANUAL_REVISION, got lost somewhere and we build SVN
    revisions again.
  - Replace "-DWITH_NO_EMBEDDED_CODE=YES" with "-DWANT_CRYPTOPP=YES".
  - Change the remaining -DWITH/-DWITHOUT to the new -DWANT syntax.
* debian/control:
  - Removed DMUA, I'm a DD now.
  - Changed my e-mail address.
  - Removed unneeded relationships (no upgrades over two releases are
    supported).
  - Fix Suggests for kvirc-dbg.
  - kvirc-data: Make the "Suggests: kvirc" a Recommends, doesn't make much
    sense to install the -data package without the program.
* debian/source/local-options: Added with "unapply-patches".
* debian/kvirc.lintian-overrides: Updated to work for 4.1.1.
* debian/patches/21_make_shared-mime-info_B-D_superfluous.patch: Updated.
* debian/kvirc-data.install: Added .notifyrc.

[ Raúl Sánchez Siles ]
* Stating the right version where kvirc-data break and replace should happen.
* Fixing link to license file.
* Added French and Portuguese man pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
//   File : libkviraweditor.cpp
4
4
//   Creation date : Mon 23 Dec 2002 20:23:59 2002 GMT by Szymon Stefanek
5
5
//
6
 
//   This toolbar is part of the KVirc irc client distribution
7
 
//   Copyright (C) 2002-2008 Szymon Stefanek (pragma at kvirc dot net)
 
6
//   This toolbar is part of the KVIrc irc client distribution
 
7
//   Copyright (C) 2002-2010 Szymon Stefanek (pragma at kvirc dot net)
8
8
//
9
9
//   This program is FREE software. You can redistribute it and/or
10
10
//   modify it under the terms of the GNU General Public License
22
22
//
23
23
//=============================================================================
24
24
 
25
 
#include "raweditor.h"
26
 
 
27
 
#include "kvi_module.h"
28
 
#include "kvi_locale.h"
29
 
#include "kvi_frame.h"
30
 
 
31
 
 
32
 
KviRawEditorWindow * g_pRawEditorWindow = 0;
 
25
#include "RawEditorWindow.h"
 
26
 
 
27
#include "KviModule.h"
 
28
#include "KviLocale.h"
 
29
#include "KviMainWindow.h"
 
30
 
 
31
 
 
32
RawEditorWindow * g_pRawEditorWindow = 0;
33
33
 
34
34
 
35
35
/*
50
50
{
51
51
        if(!g_pRawEditorWindow)
52
52
        {
53
 
                g_pRawEditorWindow = new KviRawEditorWindow(c->window()->frame());
 
53
                g_pRawEditorWindow = new RawEditorWindow(c->window()->frame());
54
54
                c->window()->frame()->addWindow(g_pRawEditorWindow);
55
55
        }
56
56
        g_pRawEditorWindow->setFocus();
71
71
 
72
72
static bool raweditor_module_cleanup(KviModule *)
73
73
{
74
 
        if(g_pRawEditorWindow && g_pFrame)
75
 
                g_pFrame->closeWindow(g_pRawEditorWindow);
 
74
        if(g_pRawEditorWindow && g_pMainWindow)
 
75
                g_pMainWindow->closeWindow(g_pRawEditorWindow);
76
76
        g_pRawEditorWindow = 0;
77
77
        return true;
78
78
}