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.
69 lines
2.1 KiB
69 lines
2.1 KiB
/***************************************************************************
|
|
loadpalettedlg.h - description
|
|
-------------------
|
|
begin : Sat Jul 8 2000
|
|
copyright : (C) 2000 by Artur Rataj
|
|
email : art@zeus.polsl.gliwice.pl
|
|
***************************************************************************/
|
|
|
|
/***************************************************************************
|
|
* *
|
|
* 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. *
|
|
* *
|
|
***************************************************************************/
|
|
|
|
#ifndef LOADPALETTEDLG_H
|
|
#define LOADPALETTEDLG_H
|
|
|
|
#include <tqcombobox.h>
|
|
#include <kdialog.h>
|
|
|
|
/**A dialog showing a list of installed palettes, with a possibility
|
|
*of choosing a custom file
|
|
*@author Artur Rataj
|
|
*/
|
|
class LoadPaletteDlg : public KDialogBase {
|
|
Q_OBJECT
|
|
TQ_OBJECT
|
|
|
|
public:
|
|
/** constructs the dialog
|
|
*/
|
|
LoadPaletteDlg(TQWidget *parent = 0, const char *name = 0);
|
|
~LoadPaletteDlg();
|
|
/** @return the fetched file name
|
|
*/
|
|
TQString getFileName();
|
|
|
|
protected slots:
|
|
/** sets fileName
|
|
*/
|
|
void setFileName(TQString* fileName);
|
|
/** sets fileName to that at position index in palettesFileNames
|
|
*/
|
|
void setFileName(int index);
|
|
/** browses file names and if a file name fetched sets fileName
|
|
*/
|
|
void browseFileNames();
|
|
|
|
private:
|
|
/** A widget holding palettes names
|
|
*/
|
|
TQComboBox* paletteBox;
|
|
/** A list of KDE palettes file names
|
|
*/
|
|
TQStringList palettesFileNames;
|
|
/** A fetched palette file name
|
|
*/
|
|
TQString fileName;
|
|
/** whether a browse file name hab already been inserted into
|
|
* palettesFilenames
|
|
*/
|
|
bool browseFileNameInserted;
|
|
};
|
|
|
|
#endif
|