Exemple #1
0
DLLEXPORT gcresource* createResource(gameproject* project, QString kind,QString type,QString name)
{
    //gcmessage("Created");

    if(kind=="image")
    {
        rsImage* img = new rsImage;
        img->type="image";
        img->name = name;
        img->icon = ffficon("image");
        img->preview = ffficon("image").pixmap(128,128);
        img->project = project;
        return img;
    }
    return 0;
}
Exemple #2
0
SkinTestWindow::SkinTestWindow(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::SkinTestWindow)
{
    ui->setupUi(this);
    setAttribute(Qt::WA_DeleteOnClose);
    Menu = new QMenu;
    ui->TSCBD->setCheckState(Qt::PartiallyChecked);
    ui->TSCBE->setCheckState(Qt::PartiallyChecked);

    Menu->addAction("Option 1");
    Menu->addAction("Option 2");
    Menu->addSeparator();
    Menu->addAction("Option 3");
    QAction* a = new QAction(Menu);a->setText("Option 4");a->setEnabled(false);
    Menu->addAction(a);
    QAction* b = new QAction(Menu);b->setText("Option 5");b->setIcon(ffficon("bullet_error"));
    Menu->addAction(b);

    ui->ButtonWithMenu->setMenu(Menu);
    FileChecker.setSingleShot(false);
    FileChecker.setInterval(1000);
    FileChecker.start();

    connect(&FileChecker,SIGNAL(timeout()),this,SLOT(CheckFileDates()));
    ReloadSkins(true);
}
Exemple #3
0
DLLEXPORT QList<vObject> newResources()
{
    //  title   description     icon    kind    type
    QList<vObject> res;

    //New image
    vObject o;
    o["kind"]="image";
    o["type"]="image";
    o["title"]="New image";
    o["description"]="Creates a Image resource which support multiple frames, imported from files or pasted from other applications";
    o["icon"]=ffficon("image");
    res.append(o);
    return res;
}