<commit_before>/*
    kopetewindow.cpp  -  Kopete Main Window

    Copyright (c) 2001-2002 by <NAME>   <<EMAIL>>
    Copyright (c) 2001-2002 by <NAME> <<EMAIL>>

    Kopete    (c) 2002 by the Kopete developers  <<EMAIL>>

    *************************************************************************
    *                                                                       *
    * This program is free software; you can redistribute it and/or modify  *
    * it under the terms of the GNU General Public License as published by  *
    * the Free Software Foundation; either version 2 of the License, or     *
    * (at your option) any later version.                                   *
    *                                                                       *
    *************************************************************************
*/

#include "kopetewindow.h"

#include <qlayout.h>

#include <kaction.h>
#include <kconfig.h>
#include <kdebug.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kpopupmenu.h>
#include <kstdaction.h>
#include <kaccel.h>
#include <kkeydialog.h>
#include <kedittoolbar.h>

#include "kopete.h"
#include "kopeteballoon.h"
#include "kopetecontact.h"
#include "kopetecontactlist.h"
#include "kopetecontactlistview.h"
#include "systemtray.h"

#include "kopeteprefs.h"

KopeteWindow::KopeteWindow( QWidget *parent, const char *name )
: KMainWindow( parent, name )
{
	kdDebug() << "[KopeteWindow] KopeteWindow()" << endl;

	// Applications should ensure that their StatusBar exists before calling createGUI()
	// so that the StatusBar is always correctly positioned when KDE is configured to use
	// a MacOS-style MenuBar.
	// This fixes a "statusbar drawn over the top of the toolbar" bug
	// e.g. it can happen when you switch desktops on Kopete startup
	statusBar();

	/* -------------------------------------------------------------------------------- */
	initView();
	initActions();
	initSystray();
	/* -------------------------------------------------------------------------------- */

	loadOptions();

	// for now systemtray is also always shown
	// TODO: make the configurable
	isClosing=false;
	tray->show();
}

void KopeteWindow::initView ( void )<commit_msg>By popular request of a single user ;)<commit_after>/*
    kopetewindow.cpp  -  Kopete Main Window

    Copyright (c) 2001-2002 by <NAME>   <<EMAIL>>
    Copyright (c) 2001-2002 by <NAME> <<EMAIL>>

    Kopete    (c) 2002 by the Kopete developers  <<EMAIL>>

    *************************************************************************
    *                                                                       *
    * This program is free software; you can redistribute it and/or modify  *
    * it under the terms of the GNU General Public License as published by  *
    * the Free Software Foundation; either version 2 of the License, or     *
    * (at your option) any later version.                                   *
    *                                                                       *
    *************************************************************************
*/

#include "kopetewindow.h"

#include <qlayout.h>

#include <kaction.h>
#include <kconfig.h>
#include <kdebug.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kpopupmenu.h>
#include <kstdaction.h>
#include <kaccel.h>
#include <kkeydialog.h>
#include <kedittoolbar.h>
#include <kwin.h>

#include "kopete.h"
#include "kopeteballoon.h"
#include "kopetecontact.h"
#include "kopetecontactlist.h"
#include "kopetecontactlistview.h"
#include "systemtray.h"

#include "kopeteprefs.h"

KopeteWindow::KopeteWindow( QWidget *parent, const char *name )
: KMainWindow( parent, name )
{
	KWin::setState(winId(), NET::SkipTaskbar);
	kdDebug() << "[KopeteWindow] KopeteWindow()" << endl;

	// Applications should ensure that their StatusBar exists before calling createGUI()
	// so that the StatusBar is always correctly positioned when KDE is configured to use
	// a MacOS-style MenuBar.
	// This fixes a "statusbar drawn over the top of the toolbar" bug
	// e.g. it can happen when you switch desktops on Kopete startup
	statusBar();

	/* -------------------------------------------------------------------------------- */
	initView();
	initActions();
	initSystray();
	/* -------------------------------------------------------------------------------- */

	loadOptions();

	// for now systemtray is also always shown
	// TODO: make the configurable
	isClosing=false;
	tray->show();
}

void KopeteWindow::initView ( void )
{'fraction_non_alphanumeric': 0.23235229032971896, 'fraction_numerical': 0.00929409161318876, 'mean_word_length': 2.1875881523272214, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 44, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6114604', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1239, 'n_words': 387}