setup for qdiget callback done
This commit is contained in:
parent
7d7e1a5b95
commit
19166cc14d
|
|
@ -36,7 +36,7 @@ MainWindow::MainWindow(QWidget* parent)
|
|||
// TODO: implement feature to call this function on widget
|
||||
// l->cycleGlyphStyle();
|
||||
|
||||
Program *program = this->ui->getProgram();
|
||||
Program *program = this->ui->program;
|
||||
program->addLayer(new BackgroundImage(dataPath + "/map_qgis_1035.png"));
|
||||
// TODO: implement feature to cycle between layers thru QT
|
||||
program->addLayer(new EGlyphLayer(uvGrid));
|
||||
|
|
@ -51,15 +51,21 @@ MainWindow::~MainWindow() {
|
|||
}
|
||||
|
||||
|
||||
/* --------------------------------------------------------------------
|
||||
* + QTWidget callbacks +
|
||||
* --------------------------------------------------------------------*/
|
||||
|
||||
|
||||
void MainWindow::on_FirstButton_clicked(bool checked) {
|
||||
if (checked) {
|
||||
|
||||
cout << "clicked button 1!" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::on_SecondButton_clicked(bool checked) {
|
||||
if (checked) {
|
||||
cout << "clicked button 2!" << endl;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,10 +55,6 @@ public:
|
|||
QRadioButton *IregularlySubsampledButton;
|
||||
Program *program;
|
||||
|
||||
Program* getProgram() {
|
||||
return program;
|
||||
}
|
||||
|
||||
void setupUi(QMainWindow *MainWindow)
|
||||
{
|
||||
if (MainWindow->objectName().isEmpty())
|
||||
|
|
|
|||
Loading…
Reference in New Issue