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.
56 lines
795 B
56 lines
795 B
#ifndef __ADDCLASS_H__
|
|
#define __ADDCLASS_H__
|
|
|
|
|
|
#include <tqstring.h>
|
|
#include <tqstringlist.h>
|
|
|
|
|
|
class AddClassInfo
|
|
{
|
|
public:
|
|
|
|
AddClassInfo();
|
|
|
|
enum Visibility { PublicClass, ProtectedClass, PrivateClass};
|
|
|
|
TQString className;
|
|
TQString extends;
|
|
bool interfaceOpt, abstractOpt, finalOpt;
|
|
TQString projectDir, sourceDir;
|
|
Visibility visibility;
|
|
TQStringList implements;
|
|
bool createConstructor, createMain;
|
|
TQString documentation;
|
|
TQString license;
|
|
|
|
TQString adaFileName() const;
|
|
|
|
};
|
|
|
|
|
|
class AddClass
|
|
{
|
|
public:
|
|
|
|
AddClass();
|
|
|
|
void setInfo(const AddClassInfo &info);
|
|
AddClassInfo &info();
|
|
|
|
void setBaseClasses(const TQStringList &classes);
|
|
bool showDialog();
|
|
|
|
bool generate();
|
|
|
|
|
|
private:
|
|
|
|
AddClassInfo m_info;
|
|
TQStringList m_baseClasses;
|
|
|
|
};
|
|
|
|
|
|
#endif
|