missing copyrights and indents. no real changes
This commit is contained in:
parent
25b6811a18
commit
00605f4a3c
@ -39,10 +39,9 @@ class AdvSearch : public QDialog, public Ui::AdvSearchBase
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
AdvSearch(QDialog* parent = 0)
|
AdvSearch(QDialog* parent = 0)
|
||||||
: QDialog(parent)
|
: QDialog(parent) {
|
||||||
{
|
setupUi(this);
|
||||||
setupUi(this);
|
init();
|
||||||
init();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2005 J.F.Dockes
|
/* Copyright (C) 2005-2020 J.F.Dockes
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
@ -48,12 +48,12 @@ void CronToolW::init()
|
|||||||
|
|
||||||
// Try to read the current values
|
// Try to read the current values
|
||||||
if (!theconfig)
|
if (!theconfig)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (checkCrontabUnmanaged(marker, "recollindex")) {
|
if (checkCrontabUnmanaged(marker, "recollindex")) {
|
||||||
QMessageBox::warning(0, "Recoll",
|
QMessageBox::warning(0, "Recoll",
|
||||||
tr("It seems that manually edited entries exist for recollindex, cannot edit crontab"));
|
tr("It seems that manually edited entries exist for recollindex, cannot edit crontab"));
|
||||||
QTimer::singleShot(0, this, SLOT(close()));
|
QTimer::singleShot(0, this, SLOT(close()));
|
||||||
}
|
}
|
||||||
|
|
||||||
string id = idstring(theconfig->getConfDir());
|
string id = idstring(theconfig->getConfDir());
|
||||||
@ -77,7 +77,7 @@ void CronToolW::disableCron()
|
|||||||
void CronToolW::changeCron(bool enable)
|
void CronToolW::changeCron(bool enable)
|
||||||
{
|
{
|
||||||
if (!theconfig)
|
if (!theconfig)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
string id = idstring(theconfig->getConfDir());
|
string id = idstring(theconfig->getConfDir());
|
||||||
string cmd("recollindex");
|
string cmd("recollindex");
|
||||||
@ -85,18 +85,18 @@ void CronToolW::changeCron(bool enable)
|
|||||||
string reason;
|
string reason;
|
||||||
|
|
||||||
if (!enable) {
|
if (!enable) {
|
||||||
editCrontab(marker, id, "", "", reason);
|
editCrontab(marker, id, "", "", reason);
|
||||||
accept();
|
accept();
|
||||||
} else {
|
} else {
|
||||||
string mins(qs2utf8s(minsLE->text().remove(QChar(' '))));
|
string mins(qs2utf8s(minsLE->text().remove(QChar(' '))));
|
||||||
string hours(qs2utf8s(hoursLE->text().remove(QChar(' '))));
|
string hours(qs2utf8s(hoursLE->text().remove(QChar(' '))));
|
||||||
string days(qs2utf8s(daysLE->text().remove(QChar(' '))));
|
string days(qs2utf8s(daysLE->text().remove(QChar(' '))));
|
||||||
string sched = mins + " " + hours + " * * " + days;
|
string sched = mins + " " + hours + " * * " + days;
|
||||||
if (editCrontab(marker, id, sched, cmd, reason)) {
|
if (editCrontab(marker, id, sched, cmd, reason)) {
|
||||||
accept();
|
accept();
|
||||||
} else {
|
} else {
|
||||||
QMessageBox::warning(0, "Recoll",
|
QMessageBox::warning(0, "Recoll",
|
||||||
tr("Error installing cron entry. Bad syntax in fields ?"));
|
tr("Error installing cron entry. Bad syntax in fields ?"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/* Copyright (C) 2005-2020 J.F.Dockes
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
@ -23,14 +23,11 @@ class QPushButton;
|
|||||||
|
|
||||||
class CronToolW : public QDialog, public Ui::CronToolW {
|
class CronToolW : public QDialog, public Ui::CronToolW {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
CronToolW(QWidget * parent = 0)
|
CronToolW(QWidget * parent = 0)
|
||||||
: QDialog(parent),
|
: QDialog(parent), enableButton(0), disableButton(0) {
|
||||||
enableButton(0),
|
setupUi(this);
|
||||||
disableButton(0)
|
init();
|
||||||
{
|
|
||||||
setupUi(this);
|
|
||||||
init();
|
|
||||||
}
|
}
|
||||||
QPushButton *enableButton;
|
QPushButton *enableButton;
|
||||||
QPushButton *disableButton;
|
QPushButton *disableButton;
|
||||||
@ -41,7 +38,6 @@ private slots:
|
|||||||
private:
|
private:
|
||||||
void init();
|
void init();
|
||||||
void changeCron(bool enable);
|
void changeCron(bool enable);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/* Copyright (C) 2005-2020 J.F.Dockes
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
@ -21,11 +21,10 @@
|
|||||||
|
|
||||||
class FirstIdxDialog : public QDialog, public Ui::FirstIdxDialog {
|
class FirstIdxDialog : public QDialog, public Ui::FirstIdxDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
FirstIdxDialog(QWidget * parent = 0)
|
FirstIdxDialog(QWidget * parent = 0)
|
||||||
: QDialog(parent)
|
: QDialog(parent) {
|
||||||
{
|
setupUi(this);
|
||||||
setupUi(this);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -62,7 +62,6 @@ private:
|
|||||||
std::string m_fn;
|
std::string m_fn;
|
||||||
time_t m_reftime;
|
time_t m_reftime;
|
||||||
bool m_ok;
|
bool m_ok;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* _FRAGBUTS_H_INCLUDED_ */
|
#endif /* _FRAGBUTS_H_INCLUDED_ */
|
||||||
|
|||||||
@ -37,7 +37,7 @@ using std::vector;
|
|||||||
|
|
||||||
/** Holder for preferences (gets saved to user Qt prefs) */
|
/** Holder for preferences (gets saved to user Qt prefs) */
|
||||||
class PrefsPack {
|
class PrefsPack {
|
||||||
public:
|
public:
|
||||||
// Simple search entry behaviour
|
// Simple search entry behaviour
|
||||||
bool ssearchNoComplete;
|
bool ssearchNoComplete;
|
||||||
bool ssearchStartOnComplete;
|
bool ssearchStartOnComplete;
|
||||||
@ -70,7 +70,7 @@ class PrefsPack {
|
|||||||
int pvwidth; // Preview window geom
|
int pvwidth; // Preview window geom
|
||||||
int pvheight;
|
int pvheight;
|
||||||
bool ssearchTypSav; // Remember last search mode (else always
|
bool ssearchTypSav; // Remember last search mode (else always
|
||||||
// start with same)
|
// start with same)
|
||||||
int ssearchTyp{0};
|
int ssearchTyp{0};
|
||||||
// Use single app (default: xdg-open), instead of per-mime settings
|
// Use single app (default: xdg-open), instead of per-mime settings
|
||||||
bool useDesktopOpen;
|
bool useDesktopOpen;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/* Copyright (C) 2005-2020 J.F.Dockes
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
@ -22,14 +22,13 @@
|
|||||||
|
|
||||||
class IdxSchedW : public QDialog, public Ui::IdxSchedW {
|
class IdxSchedW : public QDialog, public Ui::IdxSchedW {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
IdxSchedW(QWidget * parent = 0)
|
IdxSchedW(QWidget * parent = 0)
|
||||||
: QDialog(parent)
|
: QDialog(parent) {
|
||||||
{
|
setupUi(this);
|
||||||
setupUi(this);
|
(void)new HelpClient(this);
|
||||||
(void)new HelpClient(this);
|
HelpClient::installMap((const char *)this->objectName().toUtf8(),
|
||||||
HelpClient::installMap((const char *)this->objectName().toUtf8(),
|
"RCL.INDEXING");
|
||||||
"RCL.INDEXING");
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/* Copyright (C) 2005-2020 J.F.Dockes
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
|||||||
@ -32,10 +32,9 @@ class EditTrans : public QDialog, public Ui::EditTransBase
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
EditTrans(const std::string& dbdir, QWidget* parent = 0)
|
EditTrans(const std::string& dbdir, QWidget* parent = 0)
|
||||||
: QDialog(parent)
|
: QDialog(parent) {
|
||||||
{
|
setupUi(this);
|
||||||
setupUi(this);
|
init(dbdir);
|
||||||
init(dbdir);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/* Copyright (C) 2005-2020 J.F.Dockes
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/* Copyright (C) 2005-2020 J.F.Dockes
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
|||||||
@ -76,9 +76,9 @@ inline std::string qs2path(const QString& qs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Specialized version of the qt file dialog. Can't use getOpenFile()
|
/** Specialized version of the qt file dialog. Can't use getOpenFile()
|
||||||
etc. cause they hide dot files... */
|
etc. cause they hide dot files... */
|
||||||
extern QString myGetFileName(bool isdir, QString caption = QString(),
|
extern QString myGetFileName(bool isdir, QString caption = QString(),
|
||||||
bool filenosave = false,
|
bool filenosave = false,
|
||||||
QString dirlocation = QString(),
|
QString dirlocation = QString(),
|
||||||
QString dlftnm = QString()
|
QString dlftnm = QString()
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/* Copyright (C) 2005-2020 J.F.Dockes
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
@ -23,12 +23,11 @@ class QPushButton;
|
|||||||
|
|
||||||
class RTIToolW : public QDialog, public Ui::RTIToolW {
|
class RTIToolW : public QDialog, public Ui::RTIToolW {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
RTIToolW(QWidget * parent = 0)
|
RTIToolW(QWidget * parent = 0)
|
||||||
: QDialog(parent)
|
: QDialog(parent) {
|
||||||
{
|
setupUi(this);
|
||||||
setupUi(this);
|
init();
|
||||||
init();
|
|
||||||
}
|
}
|
||||||
public slots:
|
public slots:
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/* Copyright (C) 2005-2020 J.F.Dockes
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/* Copyright (C) 2005-2020 J.F.Dockes
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
@ -30,9 +30,8 @@ class SpecIdxW : public QDialog, public Ui::SpecIdxW {
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
SpecIdxW(QWidget * parent = 0)
|
SpecIdxW(QWidget * parent = 0)
|
||||||
: QDialog(parent)
|
: QDialog(parent) {
|
||||||
{
|
setupUi(this);
|
||||||
setupUi(this);
|
|
||||||
selPatsLE->setEnabled(false);
|
selPatsLE->setEnabled(false);
|
||||||
connect(browsePB, SIGNAL(clicked()), this, SLOT(onBrowsePB_clicked()));
|
connect(browsePB, SIGNAL(clicked()), this, SLOT(onBrowsePB_clicked()));
|
||||||
connect(targLE, SIGNAL(textChanged(const QString&)),
|
connect(targLE, SIGNAL(textChanged(const QString&)),
|
||||||
|
|||||||
@ -28,15 +28,15 @@ class SpellW : public QWidget, public Ui::SpellBase
|
|||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
public:
|
public:
|
||||||
SpellW(QWidget* parent = 0)
|
SpellW(QWidget* parent = 0)
|
||||||
: QWidget(parent), m_prevmode(TYPECMB_NONE) {
|
: QWidget(parent), m_prevmode(TYPECMB_NONE) {
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool eventFilter(QObject *target, QEvent *event );
|
virtual bool eventFilter(QObject *target, QEvent *event );
|
||||||
|
|
||||||
enum comboboxchoice {TYPECMB_NONE, TYPECMB_WILD, TYPECMB_REG, TYPECMB_STEM,
|
enum comboboxchoice {TYPECMB_NONE, TYPECMB_WILD, TYPECMB_REG, TYPECMB_STEM,
|
||||||
TYPECMB_SPELL, TYPECMB_STATS, TYPECMB_FAILED};
|
TYPECMB_SPELL, TYPECMB_STATS, TYPECMB_FAILED};
|
||||||
public slots:
|
public slots:
|
||||||
virtual void doExpand();
|
virtual void doExpand();
|
||||||
virtual void wordChanged(const QString&);
|
virtual void wordChanged(const QString&);
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/* Copyright (C) 2005-2020 J.F.Dockes
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/* Copyright (C) 2005-2020 J.F.Dockes
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
@ -25,7 +25,7 @@ class RclMain;
|
|||||||
class RclTrayIcon : public QSystemTrayIcon {
|
class RclTrayIcon : public QSystemTrayIcon {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
RclTrayIcon(RclMain *mainw, const QIcon& icon, QObject* parent = 0)
|
RclTrayIcon(RclMain *mainw, const QIcon& icon, QObject* parent = 0)
|
||||||
: QSystemTrayIcon(icon, parent), m_mainw(mainw) {
|
: QSystemTrayIcon(icon, parent), m_mainw(mainw) {
|
||||||
|
|||||||
@ -31,8 +31,7 @@ class UIPrefsDialog : public QDialog, public Ui::uiPrefsDialogBase
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
UIPrefsDialog(RclMain* parent)
|
UIPrefsDialog(RclMain* parent)
|
||||||
: QDialog((QWidget*)parent), m_mainWindow(parent)
|
: QDialog((QWidget*)parent), m_mainWindow(parent) {
|
||||||
{
|
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,8 +33,8 @@ class SDHXMLHandler : public PicoXMLParser {
|
|||||||
public:
|
public:
|
||||||
SDHXMLHandler(const std::string& in)
|
SDHXMLHandler(const std::string& in)
|
||||||
: PicoXMLParser(in) {
|
: PicoXMLParser(in) {
|
||||||
resetTemps();
|
resetTemps();
|
||||||
}
|
}
|
||||||
void startElement(
|
void startElement(
|
||||||
const std::string& nm,
|
const std::string& nm,
|
||||||
const std::map<std::string, std::string>& attrs) {
|
const std::map<std::string, std::string>& attrs) {
|
||||||
@ -219,7 +219,7 @@ class SSHXMLHandler : public PicoXMLParser {
|
|||||||
public:
|
public:
|
||||||
SSHXMLHandler(const std::string& in)
|
SSHXMLHandler(const std::string& in)
|
||||||
: PicoXMLParser(in) {
|
: PicoXMLParser(in) {
|
||||||
resetTemps();
|
resetTemps();
|
||||||
}
|
}
|
||||||
|
|
||||||
void startElement(const std::string &nm,
|
void startElement(const std::string &nm,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user