Postby GEFORCEXTREME » 14 Apr 2010 12:33
I want a GUI dialog that lets user select transcoding levels (low, medium, high), and then apply the settings appropriately.
Where do I start? I don't know much about GUI programming and VLC. Would be glad if someone offer me some directions.
From Qt's guide, I get the following code.
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!");
label->show();
return app.exec();
}
For a simple program like above, how do I "port" it to VLC so when x264's module is opened, a simply GUI label like above ("Hello Qt!") display? I'm planning to add the code to VLC's x264.c but quickly notice I can't do that because it is not C++. I tried adding a new cpp file to Modules.am at VLC/modules/codec but I can't make because it says cannot find QApplication and QLabel. I tried adding the code to VLC/modules/GUI/qt4 and it make successfully but how do I and where do I add a code to "show" the dialog?
Thank you very much, J-B.