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.
tdeaddons/atlantikdesigner/designer/boardinfo.h

77 lines
1.2 KiB

#ifndef ATLANTIK_BOARDINFO_H
#define ATLANTIK_BOARDINFO_H
#include <tqcolor.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqptrlist.h>
#include <tqwidget.h>
#include <kdialogbase.h>
class KColorButton;
class KLineEdit;
class KURLLabel;
class TQVBoxLayout;
struct BoardInfo
{
BoardInfo() { bgColor = TQt::lightGray; }
TQString name;
TQStringList authors;
TQStringList credits;
TQString description;
TQString url;
TQString version;
TQColor bgColor;
};
class LotsaEdits : public TQWidget
{
Q_OBJECT
TQ_OBJECT
public:
LotsaEdits(bool, TQStringList=TQStringList(), TQWidget *parent=0, const char *name=0);
public slots:
TQStringList save();
private slots:
void more();
void less();
private:
bool editable;
TQPtrList<TQWidget> list;
TQVBoxLayout *tqlayout;
};
class BoardInfoDlg : public KDialogBase
{
Q_OBJECT
TQ_OBJECT
public:
BoardInfoDlg(bool editable, BoardInfo *, TQWidget *parent=0, const char *_name=0, bool = true);
protected slots:
void slotOk();
void slotApply();
private:
KLineEdit *name;
KLineEdit *url;
KLineEdit *version;
KLineEdit *description;
KColorButton *bgColor;
LotsaEdits *authors;
LotsaEdits *credits;
BoardInfo *info;
};
#endif