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

« back to all changes in this revision

Viewing changes to src/modules/logview/libkvilogview.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 : libkvilogview.cpp
4
4
//   Creation date : Sun Feb 10 2000 23:25:10 CEST by Juanjo �varez
5
5
//
6
 
//   This file is part of the KVirc irc client distribution
7
 
//   Copyright (C) 2000-2008 Szymon Stefanek (pragma at kvirc dot net)
 
6
//   This file is part of the KVIrc irc client distribution
 
7
//   Copyright (C) 2000-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 "logviewwidget.h"
26
 
#include "logviewmdiwindow.h"
 
25
#include "LogViewWidget.h"
 
26
#include "LogViewWindow.h"
27
27
 
28
 
#include "kvi_config.h"
29
 
#include "kvi_module.h"
30
 
#include "kvi_frame.h"
31
 
#include "kvi_iconmanager.h"
32
 
#include "kvi_locale.h"
33
 
#include "kvi_app.h"
 
28
#include "KviConfigurationFile.h"
 
29
#include "KviModule.h"
 
30
#include "KviMainWindow.h"
 
31
#include "KviIconManager.h"
 
32
#include "KviLocale.h"
 
33
#include "KviApplication.h"
34
34
 
35
35
static QRect                 g_rectLogViewGeometry;
36
 
KviLogViewMDIWindow        * g_pLogViewWindow = 0;
 
36
LogViewWindow        * g_pLogViewWindow = 0;
37
37
 
38
38
#define LOGVIEW_MODULE_EXTENSION_NAME "Log viewer extension"
39
39
 
100
100
                        }
101
101
                }
102
102
 
103
 
                g_pLogViewWindow = new KviLogViewMDIWindow(s->pDescriptor,g_pFrame);
104
 
                g_pFrame->addWindow(g_pLogViewWindow,!bCreateMinimized);
 
103
                g_pLogViewWindow = new LogViewWindow(s->pDescriptor,g_pMainWindow);
 
104
                g_pMainWindow->addWindow(g_pLogViewWindow,!bCreateMinimized);
105
105
                if(bCreateMinimized)g_pLogViewWindow->minimize();
106
106
                return g_pLogViewWindow;
107
107
        }
135
135
                                                        __tr2qs_ctx("Browse &Log Files","logview"),
136
136
                                                        logview_extension_alloc);
137
137
 
138
 
        if(d)d->setIcon(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_LOG)));
 
138
        if(d)d->setIcon(*(g_pIconManager->getSmallIcon(KviIconManager::Log)));
139
139
 
140
140
        return true;
141
141
}
142
142
 
143
143
static bool logview_module_cleanup(KviModule *)
144
144
{
145
 
        if(g_pLogViewWindow && g_pFrame)
146
 
                g_pFrame->closeWindow(g_pLogViewWindow);
 
145
        if(g_pLogViewWindow && g_pMainWindow)
 
146
                g_pMainWindow->closeWindow(g_pLogViewWindow);
147
147
        g_pLogViewWindow = 0;
148
148
        return true;
149
149
}