<commit_before>#ifndef RAZORGUI_CPP
#define RAZORGUI_CPP

#include "razor.h"
#include "razorgui.h"
//#include "razormainmenu.h"
#include "razorbar.h"
/**
 * @file razorgui.cpp
 * @brief implements class Razorgui
 * @author Christopher "VdoP" Regali
 */


/**
 * @brief constructor, initializes the parts of the razor gui
 */

RazorGUI::RazorGUI()
{
    qDebug() << "Razorgui: initializing... ";
}


/**
 * @brief adds a new Razorbar panel
 * @return the number of the created panel
 */
int RazorGUI::addPanel(const QString & configId)
{
    RazorBar* newpanel = new RazorBar(configId);
    Window wid = newpanel->effectiveWinId();
    windowList.append(wid);
    //reserve our space on the screen
    Razor::getInstance().get_Xfitman()->setStrut(wid,newpanel->height());
    Razor::getInstance().get_Xfitman()->moveWindowtoDesktop(wid,-1);
    panelList.append(newpanel);<commit_msg>XfitMan.setStrut allowed to reserve a place only from bottom.<commit_after>#ifndef RAZORGUI_CPP
#define RAZORGUI_CPP

#include "razor.h"
#include "razorgui.h"
//#include "razormainmenu.h"
#include "razorbar.h"
/**
 * @file razorgui.cpp
 * @brief implements class Razorgui
 * @author Christopher "VdoP" Regali
 */


/**
 * @brief constructor, initializes the parts of the razor gui
 */

RazorGUI::RazorGUI()
{
    qDebug() << "Razorgui: initializing... ";
}


/**
 * @brief adds a new Razorbar panel
 * @return the number of the created panel
 */
int RazorGUI::addPanel(const QString & configId)
{
    RazorBar* newpanel = new RazorBar(configId);
    Window wid = newpanel->effectiveWinId();
    windowList.append(wid);
    //reserve our space on the screen
    Razor::getInstance().get_Xfitman()->setStrut(wid, 0, 0, 0, newpanel->height(), 0, 0, 0, 0, 0, 0, 0, QApplication::desktop()->width());
    Razor::getInstance().get_Xfitman()->moveWindowtoDesktop(wid,-1);
    panelList.append(newpanel);
{'fraction_non_alphanumeric': 0.1484832357637041, 'fraction_numerical': 0.006386375731772219, 'mean_word_length': 4.402298850574713, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5676503', 'n_tokens_mistral': 659, 'n_tokens_neox': 647, 'n_words': 157}