You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kbibtex/src/settingsediting.h

101 lines
3.5 KiB

12 years ago
/***************************************************************************
* Copyright (C) 2004-2006 by Thomas Fischer *
* fischer@unix-ag.uni-kl.de *
* *
* 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. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef SETTINGSEDITING_H
#define SETTINGSEDITING_H
#include <tqwidget.h>
12 years ago
class TQCheckBox;
class TQPushButton;
class TQComboBox;
class TQSlider;
12 years ago
class KPushButton;
class KURLRequester;
class TDEListView;
12 years ago
namespace KBibTeX
{
class SettingsEditingPaths: public TQWidget
12 years ago
{
Q_OBJECT
protected:
SettingsEditingPaths( TQStringList& pathList, TQWidget*parent = 0, const char *name = 0 );
12 years ago
public:
static bool execute( TQWidget *parent, TQStringList &pathList );
12 years ago
public slots:
void slotApply();
void slotTextChanged( const TQString&text );
12 years ago
void slotAddDir();
void slotSelectionChanged();
void slotDelDir();
private:
TQStringList &m_pathList;
12 years ago
KURLRequester *m_urlRequesterNewPath;
KPushButton *m_pushButtonAddDir;
TDEListView *m_listViewPathList;
12 years ago
KPushButton *m_pushButtonDelDir;
};
class SettingsEditing : public TQWidget
12 years ago
{
Q_OBJECT
public:
SettingsEditing( TQWidget *parent = 0, const char *name = 0 );
12 years ago
~SettingsEditing();
void applyData();
void readData();
signals:
void configChanged();
protected slots:
void slotConfigChanged();
void slotSelectSpecialFont();
void slotSelectDocumentSearchPath();
private:
TQCheckBox *m_checkBoxEnableAllFields;
TQCheckBox *m_checkBoxSearchBarClearField;
TQComboBox *m_comboBoxSortingColumn;
TQComboBox *m_comboBoxSortingOrder;
TQComboBox *m_comboBoxDoubleClickAction;
TQComboBox *m_comboBoxDragAction;
TQCheckBox *m_checkBoxUseSpecialFont;
TQPushButton *m_pushButtonSpecialFont;
TQFont m_specialFont;
TQComboBox *m_comboBoxNameOrder;
TQStringList m_documentSearchPaths;
static const TQChar pathListSeparator;
TQSlider *m_sliderBarFindDuplicatesSensitivity;
12 years ago
void updateFontData();
bool editPathList( TQStringList &pathList );
12 years ago
const int m_findDuplicatesSensitivityMin, m_findDuplicatesSensitivityMax;
};
}
#endif // SETTINGSEDITING_H