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