mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-17 16:44:34 -04:00
Expand GUI for sequencing and input from file
This commit is contained in:
parent
467433f0d0
commit
0bce27959f
11 changed files with 1375 additions and 642 deletions
|
@ -22,6 +22,8 @@
|
|||
#include <QFile>
|
||||
|
||||
#include "mainwindow.h"
|
||||
#include "datawindow.h"
|
||||
#include "sequencewindow.h"
|
||||
#include <stdio.h>
|
||||
|
||||
MainWindow::MainWindow(QWidget* parent, Qt::WFlags fl)
|
||||
|
@ -126,6 +128,8 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags fl)
|
|||
connect(spnScale, SIGNAL(valueChanged( double )), SLOT(change_print_scale()));
|
||||
connect(btnExit, SIGNAL(clicked( bool )), SLOT(quit_now()));
|
||||
connect(btnReset, SIGNAL(clicked( bool )), SLOT(reset_view()));
|
||||
connect(btnMoreData, SIGNAL(clicked( bool )), SLOT(open_data_dialog()));
|
||||
connect(btnSequence, SIGNAL(clicked( bool )), SLOT(open_sequence_dialog()));
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
|
@ -181,6 +185,22 @@ void MainWindow::about()
|
|||
));
|
||||
}
|
||||
|
||||
int MainWindow::open_data_dialog()
|
||||
{
|
||||
int retval;
|
||||
DataWindow dlg(txtData->text());
|
||||
retval = dlg.exec();
|
||||
if (dlg.Valid == 1)
|
||||
txtData->setText(dlg.DataOutput);
|
||||
return retval;
|
||||
}
|
||||
|
||||
int MainWindow::open_sequence_dialog()
|
||||
{
|
||||
SequenceWindow dlg;
|
||||
return dlg.exec();
|
||||
}
|
||||
|
||||
void MainWindow::on_fgcolor_clicked()
|
||||
{
|
||||
m_fgcolor=QColorDialog::getColor(m_fgcolor,this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue