Qt input preset configs in work.
This commit is contained in:
parent
adce35cc58
commit
f541822557
|
@ -106,6 +106,20 @@ InputConfDialog_t::InputConfDialog_t(QWidget *parent)
|
||||||
|
|
||||||
mainLayout->addLayout( hbox );
|
mainLayout->addLayout( hbox );
|
||||||
|
|
||||||
|
vbox = new QVBoxLayout();
|
||||||
|
hbox = new QHBoxLayout();
|
||||||
|
vbox->addLayout( hbox );
|
||||||
|
hbox->addWidget( new QLabel( tr("File:") ) );
|
||||||
|
hbox->addWidget( saveFileName = new QLineEdit() );
|
||||||
|
saveFileName->setReadOnly(true);
|
||||||
|
|
||||||
|
hbox = new QHBoxLayout();
|
||||||
|
vbox->addLayout( hbox );
|
||||||
|
hbox->addWidget( loadConfigButton = new QPushButton( tr("Load") ) );
|
||||||
|
hbox->addWidget( saveConfigButton = new QPushButton( tr("Save") ) );
|
||||||
|
|
||||||
|
presetFrame->setLayout( vbox );
|
||||||
|
|
||||||
vbox = new QVBoxLayout();
|
vbox = new QVBoxLayout();
|
||||||
hbox = new QHBoxLayout();
|
hbox = new QHBoxLayout();
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
#include <QLineEdit>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QFrame>
|
#include <QFrame>
|
||||||
#include <QGroupBox>
|
#include <QGroupBox>
|
||||||
|
@ -39,6 +40,9 @@ class InputConfDialog_t : public QDialog
|
||||||
QLabel *expPortLabel;
|
QLabel *expPortLabel;
|
||||||
QPushButton *expPortConfButton;
|
QPushButton *expPortConfButton;
|
||||||
QComboBox *expPortComboxBox;
|
QComboBox *expPortComboxBox;
|
||||||
|
QPushButton *loadConfigButton;
|
||||||
|
QPushButton *saveConfigButton;
|
||||||
|
QLineEdit *saveFileName;
|
||||||
|
|
||||||
int curNesInput[3];
|
int curNesInput[3];
|
||||||
int usrNesInput[3];
|
int usrNesInput[3];
|
||||||
|
|
|
@ -2189,7 +2189,7 @@ int loadInputSettingsFromFile( const char *filename )
|
||||||
printf("Warning: No Value Specified for Token ID: '%s'\n", id );
|
printf("Warning: No Value Specified for Token ID: '%s'\n", id );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
printf("ID: '%s' Val: '%s' \n", id, val );
|
//printf("ID: '%s' Val: '%s' \n", id, val );
|
||||||
|
|
||||||
if ( strcmp( id, "InputTypePort1" ) == 0 )
|
if ( strcmp( id, "InputTypePort1" ) == 0 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue