Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QListWidget


    bGroup.addButton(edgeSelection);
    QBoxLayout selBox = new QBoxLayout(Direction.LeftToRight);
    selBox.addWidget(waySelection);
    selBox.addWidget(edgeSelection);
   
    edgesWidget = new QListWidget();
   
    QPushButton finishButton = new QPushButton("Finish");
    QPushButton selectButton = new QPushButton("Select");
    QPushButton cancelButton = new QPushButton("Cancel");
    finishButton.setDefault(true);
View Full Code Here


 
  public IgnoreSync(List<Notebook> allBooks, List<Notebook> archive, List<Tag> allTags, List<Tag> ignoreTags,
      List<LinkedNotebook> allLinkedNotebooks, List<LinkedNotebook> ignoreLinkedNotebooks) {
    setWindowIcon(new QIcon(iconPath+"synchronize.png"));
    okClicked = false;
    syncBookList = new QListWidget();
    syncBookList.setSortingEnabled(true);
    syncBookList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
   
    syncTagList = new QListWidget();
    syncTagList.setSortingEnabled(true);
    syncTagList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
   
    syncLinkedNotebookList = new QListWidget();
    syncLinkedNotebookList.setSortingEnabled(true);
    syncLinkedNotebookList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
   
    okButton = new QPushButton();
    okButton.setText(tr("OK"));
    okButton.pressed.connect(this, "onClicked()");
   
    cancelButton = new QPushButton();
    cancelButton.setText(tr("Cancel"));
    cancelButton.pressed.connect(this, "onCancel()");
   
    QVBoxLayout openLayout = new QVBoxLayout();
    openLayout.addWidget(new QLabel(tr("Synchronized Notebooks")));
    openLayout.addWidget(syncBookList);
   
    QVBoxLayout openTagLayout = new QVBoxLayout();
    openTagLayout.addWidget(new QLabel(tr("Synchronized Tags")));
    openTagLayout.addWidget(syncTagList);
   
    QVBoxLayout openLinkedNotebookLayout = new QVBoxLayout();
    linkedLabelLeft = new QLabel(tr("Synchronized Linked Notebooks"));
    openLinkedNotebookLayout.addWidget(linkedLabelLeft);
    openLinkedNotebookLayout.addWidget(syncLinkedNotebookList);
   
    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);
   
    rightTagButton = new QPushButton(this);
    rightTagButton.setIcon(new QIcon(iconPath+"forward.png"));
    leftTagButton = new QPushButton(this);
    leftTagButton.setIcon(new QIcon(iconPath+"back.png"));
    leftTagButton.setEnabled(false);
    rightTagButton.setEnabled(false);
   
    rightLinkedNotebookButton = new QPushButton(this);
    rightLinkedNotebookButton.setIcon(new QIcon(iconPath+"forward.png"));
    leftLinkedNotebookButton = new QPushButton(this);
    leftLinkedNotebookButton.setIcon(new QIcon(iconPath+"back.png"));
    leftLinkedNotebookButton.setEnabled(false);
    rightLinkedNotebookButton.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 middleTagLayout = new QVBoxLayout();
    middleTagLayout.addSpacerItem(new QSpacerItem(1,1));
    middleTagLayout.addWidget(rightTagButton);
    middleTagLayout.addWidget(leftTagButton);
    middleTagLayout.addSpacerItem(new QSpacerItem(1,1));
   
    QVBoxLayout middleLinkedNotebookLayout = new QVBoxLayout();
    middleLinkedNotebookLayout.addSpacerItem(new QSpacerItem(1,1));
    middleLinkedNotebookLayout.addWidget(rightLinkedNotebookButton);
    middleLinkedNotebookLayout.addWidget(leftLinkedNotebookButton);
    middleLinkedNotebookLayout.addSpacerItem(new QSpacerItem(1,1));

    QVBoxLayout closeLayout = new QVBoxLayout();
    closeLayout.addWidget(new QLabel(tr("Non-Synchronized Notebooks")));
    ignoreBookList = new QListWidget();
    ignoreBookList.setSortingEnabled(true);
    ignoreBookList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
    closeLayout.addWidget(ignoreBookList);

    QVBoxLayout closeTagLayout = new QVBoxLayout();
    closeTagLayout.addWidget(new QLabel(tr("Non-Synchronized Tags")));
    ignoreTagList = new QListWidget();
    ignoreTagList.setSortingEnabled(true);
    ignoreTagList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
    closeTagLayout.addWidget(ignoreTagList);
   
    QVBoxLayout closeLinkedNotebookLayout = new QVBoxLayout();
    linkedLabelRight = new QLabel(tr("Non-Synchronized Linked Notebooks"));
    closeLinkedNotebookLayout.addWidget(linkedLabelRight);
    ignoreLinkedNotebookList = new QListWidget();
    ignoreLinkedNotebookList.setSortingEnabled(true);
    ignoreLinkedNotebookList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
    closeLinkedNotebookLayout.addWidget(ignoreLinkedNotebookList);
   
    syncBookList.itemSelectionChanged.connect(this, "syncBookSelected()");
View Full Code Here

  private final ConfigIndexPage      indexPage;
    private final String iconPath = new String("classpath:cx/fbn/nevernote/icons/");
 
  public ConfigDialog(QWidget parent) {
   
    contentsWidget = new QListWidget(this);
    setWindowIcon(new QIcon(iconPath+"config.png"));
    contentsWidget.setViewMode(QListView.ViewMode.IconMode);
    contentsWidget.setIconSize(new QSize(96, 84));
    contentsWidget.setMovement(QListView.Movement.Static);
    contentsWidget.setMaximumWidth(128);
View Full Code Here

  public TagAssign(List<Tag> allTags, List<String> selectedTags, boolean permitNew) {
    okClicked = false;
    tags = new ArrayList<String>();
    setWindowIcon(new QIcon(iconPath+"tag.png"));
   
    tagList = new QListWidget();
    tagList.setSortingEnabled(true);
    tagList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
   
    newTag = new QLineEdit();
    newTag.textChanged.connect(this, "newTagTextChanged()");
View Full Code Here

    QGridLayout suggestionGrid = new QGridLayout();
    QGridLayout buttonGrid = new QGridLayout();
   
    currentWord = new QLabel(misspelledWord);
    replacementWord = new QLineEdit();
    suggestions = new QListWidget();
   
    replacementWord.textChanged.connect(this, "validateInput()");
    suggestions.itemSelectionChanged.connect(this, "replacementChosen()");
   
    suggestionGrid.addWidget(currentWord, 1, 1);
View Full Code Here

  private final String iconPath = new String("classpath:cx/fbn/nevernote/icons/");
 
  public NotebookArchive(List<Notebook> allBooks, List<Notebook> archive) {
    setWindowIcon(new QIcon(iconPath+"notebook-green.png"));
    okClicked = false;
    openBookList = new QListWidget();
    openBookList.setSortingEnabled(true);
    openBookList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
   
    okButton = new QPushButton();
    okButton.setText(tr("OK"));
    okButton.pressed.connect(this, "onClicked()");
   
    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()");
View Full Code Here

TOP

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

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.