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.
98 lines
2.0 KiB
98 lines
2.0 KiB
#ifndef KJPREFS_H
|
|
#define KJPREFS_H
|
|
|
|
//#include "kjprefswidget.h"
|
|
#include "kjskinselectorwidget.h"
|
|
#include "kjguisettingswidget.h"
|
|
|
|
// system includes
|
|
#include <tqwidget.h>
|
|
#include <noatun/pref.h>
|
|
|
|
#include <tdeio/job.h>
|
|
#include <kurlrequester.h>
|
|
|
|
class TQVBoxLayout;
|
|
class TQHBoxLayout;
|
|
class TQGridLayout;
|
|
class TQComboBox;
|
|
class TQLabel;
|
|
class TQPushButton;
|
|
class TQTabWidget;
|
|
class TDEConfig;
|
|
class KJLoader;
|
|
|
|
class KJPrefs : public CModule
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
KJPrefs(TQObject* parent);
|
|
|
|
// Save which Skin is currently selected
|
|
virtual void save();
|
|
|
|
// Rebuild the Skinlist
|
|
virtual void reopen();
|
|
|
|
TQString skin( void ) const;
|
|
|
|
int minimumPitch( void ) const;
|
|
int maximumPitch( void ) const;
|
|
|
|
int visTimerValue ( void ) const;
|
|
|
|
int titleMovingUpdates ( void ) const;
|
|
float titleMovingDistance ( void ) const;
|
|
|
|
int visType ( void ) const;
|
|
void setVisType ( int vis );
|
|
|
|
bool useSysFont( void ) const;
|
|
void setUseSysFont( bool );
|
|
|
|
TQFont sysFont(void) const;
|
|
void setSysFont(TQFont&);
|
|
|
|
TQColor sysFontColor(void) const;
|
|
void sysFontColor(TQColor &);
|
|
|
|
bool displayTooltips( void ) const;
|
|
bool displaySplash( void ) const;
|
|
|
|
public slots:
|
|
// Installs a skin defined by the URL in mSkinRequester
|
|
void installNewSkin( void );
|
|
|
|
// Delete the currently selected Skin (does not work for systemwide skins!)
|
|
void removeSelectedSkin ( void );
|
|
|
|
// Show a preview of "skin" in mPixmap
|
|
void showPreview(const TQString &skin);
|
|
|
|
// gets called after a TDEIO-action has finished
|
|
// TDEIO is used for installing/removing skins
|
|
void slotResult(TDEIO::Job *job);
|
|
|
|
signals:
|
|
void configChanged();
|
|
|
|
private:
|
|
TQPixmap mPixmap; // preview Pixmap
|
|
TDEConfig *cfg;
|
|
|
|
// Dialog-Widgets
|
|
TQTabWidget *mTabWidget;
|
|
KJSkinselector *mSkinselectorWidget;
|
|
KJGuiSettings *mGuiSettingsWidget;
|
|
};
|
|
|
|
/**
|
|
* resolve a filename to its correct case.
|
|
* badNodes is the amount of directories/files (at the end)
|
|
* that aren't known)
|
|
**/
|
|
TQString filenameNoCase(const TQString &filename, int badNodes=1);
|
|
|
|
#endif // KJPREFS_H
|