Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QVBoxLayout


 
  // Constructor
  public OnlineNoteHistory(ApplicationLogger l, DatabaseConnection c) {
    setWindowTitle(tr("Online Note History"));
    setWindowIcon(new QIcon(iconPath+"notebook-green.png"));
    QVBoxLayout main = new QVBoxLayout();
    setLayout(main);
    historyCombo = new QComboBox(this);
   
    QHBoxLayout comboLayout = new QHBoxLayout();
    comboLayout.addWidget(new QLabel(tr("History Date:")));
    comboLayout.addWidget(historyCombo);
    comboLayout.addStretch(100);
   
    main.addLayout(comboLayout);
       
    conn = c;
    browser = new BrowserWindow(conn);
    main.addWidget(browser);
    browser.titleLabel.setVisible(false);
    browser.notebookBox.setVisible(false);
    browser.hideButtons();
    browser.tagEdit.setVisible(false);
    browser.tagLabel.setVisible(false);
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(100);
    restore = new QPushButton(tr("Restore Note"));
    restore.clicked.connect(this, "restorePushed()");
   
    restoreAsNew = new QPushButton(tr("Restore As New Note"));
    restoreAsNew.clicked.connect(this, "restoreAsNewPushed()");
    QPushButton cancel = new QPushButton(tr("Cancel"));
    cancel.clicked.connect(this, "cancelPressed()");
   
    buttonLayout.addWidget(restore);
    buttonLayout.addWidget(restoreAsNew);
    buttonLayout.addWidget(cancel);
    main.addLayout(buttonLayout);
   
    browser.getBrowser().setContextMenuPolicy(ContextMenuPolicy.NoContextMenu);
    tempFiles = new ArrayList<QTemporaryFile>();
    logger = l;
  }
View Full Code Here


   
    cancelButton = new QPushButton();
    cancelButton.setText(tr("Cancel"));
    cancelButton.pressed.connect(this, "onCancel()");
   
    QVBoxLayout openLayout = new QVBoxLayout();
    openLayout.addWidget(new QLabel(tr("Open Notebooks")));
    openLayout.addWidget(openBookList);
   
    rightButton = new QPushButton(this);
    rightButton.setIcon(new QIcon(iconPath+"forward.png"));
    leftButton = new QPushButton(this);
    leftButton.setIcon(new QIcon(iconPath+"back.png"));
    leftButton.setEnabled(false);
    rightButton.setEnabled(false);
   
    QVBoxLayout middleLayout = new QVBoxLayout();
    middleLayout.addSpacerItem(new QSpacerItem(1,1));
    middleLayout.addWidget(rightButton);
    middleLayout.addWidget(leftButton);
    middleLayout.addSpacerItem(new QSpacerItem(1,1));

    QVBoxLayout closeLayout = new QVBoxLayout();
    closeLayout.addWidget(new QLabel(tr("Closed Notebooks")));
    closedBookList = new QListWidget();
    closedBookList.setSortingEnabled(true);
    closedBookList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
    closeLayout.addWidget(closedBookList);

    openBookList.itemSelectionChanged.connect(this, "openBookSelected()");
    closedBookList.itemSelectionChanged.connect(this, "closedBookSelected()");
    leftButton.clicked.connect(this, "toOpenList()");
    rightButton.clicked.connect(this, "toClosedList()");
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
    buttonLayout.addWidget(cancelButton);
    setWindowTitle(tr("Open/Close Notebooks"));
   
    QHBoxLayout upperLayout = new QHBoxLayout();
    upperLayout.addLayout(openLayout);
    upperLayout.addLayout(middleLayout);
    upperLayout.addLayout(closeLayout);
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(upperLayout);
    //mainLayout.addStretch(1);
    mainLayout.addSpacing(1);
    mainLayout.addLayout(buttonLayout);
    setLayout(mainLayout);

    for (int i=0; i<allBooks.size(); i++) {
      boolean found = false;
      for (int j=0; j<archive.size(); j++) {
View Full Code Here

  // Constructor
  public NoteQuickLinkDialog(ApplicationLogger l, DatabaseConnection c, String text) {
    okPressed = false;
    setWindowTitle(tr("Quick Link Notes"));
    setWindowIcon(new QIcon(iconPath+"notebook-green.png"));
    QVBoxLayout main = new QVBoxLayout();
    setLayout(main);
    titleCombo = new QComboBox(this);
   
    QHBoxLayout comboLayout = new QHBoxLayout();
    comboLayout.addWidget(new QLabel(tr("Matching Notes:")));
    comboLayout.addWidget(titleCombo);
    comboLayout.addStretch(100);
   
    main.addLayout(comboLayout);
       
    conn = c;
    browser = new BrowserWindow(conn);
    main.addWidget(browser);
    browser.titleLabel.setVisible(false);
    browser.notebookBox.setVisible(false);
    browser.hideButtons();
    browser.tagEdit.setVisible(false);
    browser.tagLabel.setVisible(false);
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(100);
    ok = new QPushButton(tr("OK"));
    ok.clicked.connect(this, "okPressed()");
   
    cancel = new QPushButton(tr("Cancel"));
    cancel.clicked.connect(this, "cancelPressed()");
   
    buttonLayout.addWidget(ok);
    buttonLayout.addWidget(cancel);
    main.addLayout(buttonLayout);
   
    browser.getBrowser().setContextMenuPolicy(ContextMenuPolicy.NoContextMenu);
    logger = l;
   
    // Search for matching notes
View Full Code Here

    cancelButton = new QPushButton();
    cancelButton.setText(tr("Cancel"));
    cancelButton.pressed.connect(this, "onCancel()");
 
   
    QVBoxLayout middleLayout = new QVBoxLayout();
    middleLayout.addSpacerItem(new QSpacerItem(1,1));
    middleLayout.addSpacerItem(new QSpacerItem(1,1));

    QVBoxLayout closeLayout = new QVBoxLayout();
    closeLayout.addWidget(new QLabel(tr("Merge Into")));
    newTag = new QComboBox();
    closeLayout.addWidget(newTag);
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
    buttonLayout.addWidget(cancelButton);
    setWindowTitle(tr("Open/Close Notebooks"));
   
    QHBoxLayout upperLayout = new QHBoxLayout();
    upperLayout.addLayout(middleLayout);
    upperLayout.addLayout(closeLayout);
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(upperLayout);
    //mainLayout.addStretch(1);
    mainLayout.addSpacing(1);
    mainLayout.addLayout(buttonLayout);
    setLayout(mainLayout);
   
    for (int i=0; i<tags.size(); i++) {
      newTag.addItem(tags.get(i).getName(), tags.get(i).getGuid());
    }
View Full Code Here

    databaseCache.setMaximum(128);
    databaseCache.setValue(new Integer(Global.databaseCache)/1024);
    databaseCacheLayout.addWidget(databaseCache);
    databaseCacheLayout.setStretch(1, 100);
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(messageLayout);
    mainLayout.addLayout(databaseCacheLayout);
   
    QHBoxLayout thumbnailLayout = new QHBoxLayout();
    QLabel thumbnailLabel = new QLabel(tr("Enable Thumbnails (experimental)"));
    thumbnailLayout.addWidget(thumbnailLabel);
    enableThumbnails = new QCheckBox(this);
    thumbnailLayout.addWidget(enableThumbnails);
    mainLayout.addLayout(thumbnailLayout);
   
    mainLayout.addWidget(serverGroup);
   
    QGroupBox crlfGroup = new QGroupBox(tr("Carriage Return Fix"));
    String crlfMessage = new String(tr("Note: The carriage return is a test fix.  If you " +
    "enable it, it will do some modifications to the notes you view to try and" +
    " get the carriage returns to look correct.  This is due to the way that " +
    "the way Evernote 3.1 Windows client is dealing with carriage returns.  This fix"+
    "will try and correct this problem.  This fix is not permanent unless you edit a note.  If" +
    "you edit a note, this fix is PERMANENT and will be sent to Evernote on the next sync.  I haven't" +
    "had any issues with this, but please be aware of this condition."));
    carriageReturnFix = new QCheckBox(this);
    QVBoxLayout crlfLayout = new QVBoxLayout();
    carriageReturnFix.setText(tr("Enable Carriage Return Fix"));
    crlfLayout.addWidget(carriageReturnFix);
    crlfGroup.setLayout(crlfLayout);

    QGroupBox htmlGroup = new QGroupBox(tr("Android Note Fix"));
    String entitiesMessage = new String(tr("Note: This is an experimental fix to correct Unicode" +
        " notes created on Android Evernote clients."));
    htmlEntitiesFix = new QCheckBox(this);
    QVBoxLayout htmlLayout = new QVBoxLayout();
    htmlEntitiesFix.setText(tr("Enable Android Fix"));
    htmlLayout.addWidget(htmlEntitiesFix);
    htmlGroup.setLayout(htmlLayout);
   
    reloadSharedNotebooks = new QCheckBox(tr("Shared Notebooks"));
    QGroupBox refresh = new QGroupBox(tr("Special Refresh (WARNING - This can cause unsynchronized data loss)."));
    QVBoxLayout refreshLayout = new QVBoxLayout();
    refreshLayout.addWidget(reloadSharedNotebooks);
    refresh.setLayout(refreshLayout);
   
   
    QTextBrowser msg = new QTextBrowser(this);
    QTextBrowser htmlMsg = new QTextBrowser(this);
View Full Code Here

TOP

Related Classes of com.trolltech.qt.gui.QVBoxLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.