Ignore:
Timestamp:
02/18/14 08:36:13 (10 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
480db50
Parents:
b0eb497
Message:

Update EasyPBI to 2.3:
Changes Include:
Add ability to build from ports directly again.
Add legacy port-build options to the GUI.
Add item to show current package compile-time options.
Add ability to create a new module from either ports/packages.
Fix a bug in the default wrapper script for 10.x PBI's (container path is /usr/local/ now when running)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/EasyPBI/newModuleDialog.cpp

    rebba654 r0c42827  
    44#include <QDebug> 
    55 
    6 NewModuleDialog::NewModuleDialog(QWidget *parent) : 
     6NewModuleDialog::NewModuleDialog(QWidget *parent, QString portsdir) : 
    77    QDialog(parent), 
    88    ui(new Ui::NewModuleDialog) 
     
    1111       //Setup Initial state of GUI objects and connect signal/slots 
    1212       ui->setupUi(this);  //load the main UI from designer 
    13        isAccepted = FALSE; 
     13       isAccepted = false; 
     14       isPort=false; 
     15        portsDir=portsdir; 
     16        if(!portsDir.isEmpty() && !portsDir.endsWith("/")){ portsDir.append("/"); } 
    1417        //Setup the dialog icons 
    1518        ui->push_port->setIcon(Backend::icon("load")); 
    1619        ui->push_icon->setIcon(Backend::icon("file")); 
     20        if(portsDir.isEmpty()){ ui->push_port->setEnabled(false); } 
    1721} 
    1822 
     
    4044 
    4145void NewModuleDialog::on_push_port_clicked(){ 
     46  QString portSel = QFileDialog::getExistingDirectory(this, tr("Select Port"), portsDir); 
     47  if(!portSel.isEmpty()){ 
     48    ui->line_port->setText(portSel.remove(portsDir)); 
     49    isPort=true; 
     50  }        
     51} 
     52 
     53void NewModuleDialog::on_push_package_clicked(){ 
    4254  pkgSelect dlg(this); 
    4355  dlg.exec(); 
    4456  if(dlg.selected){ 
    4557    ui->line_port->setText(dlg.portSelected); 
    46   } 
     58    isPort=false; 
     59  }      
    4760} 
    4861 
Note: See TracChangeset for help on using the changeset viewer.