| 1 | /*************************************************************************** |
| 2 | * Copyright (C) 2009 by The qGo Project * |
| 3 | * * |
| 4 | * This file is part of qGo. * |
| 5 | * * |
| 6 | * qGo is free software: you can redistribute it and/or modify * |
| 7 | * it under the terms of the GNU General Public License as published by * |
| 8 | * the Free Software Foundation; either version 2 of the License, or * |
| 9 | * (at your option) any later version. * |
| 10 | * * |
| 11 | * This program is distributed in the hope that it will be useful, * |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 14 | * GNU General Public License for more details. * |
| 15 | * * |
| 16 | * You should have received a copy of the GNU General Public License * |
| 17 | * along with this program; if not, see <http://www.gnu.org/licenses/> * |
| 18 | * or write to the Free Software Foundation, Inc., * |
| 19 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
| 20 | ***************************************************************************/ |
| 21 | |
| 22 | |
| 23 | #include <QtWidgets> |
| 24 | #include "setphrasepalette.h"cxx . . $ `<file>/src/network/setphrasepalette.h`/ |
| 25 | #include "orosetphrasechat.h"cxx . . $ `<file>/src/network/orosetphrasechat.h`/ |
| 26 | #include "cyberoroconnection.h"cxx . . $ `<file>/src/network/cyberoroconnection.h`/ |
| 27 | |
| 28 | /* There's also the possibility of eventually using this on other services |
| 29 | * however unlikely. Should probably have a parent for it but there isn't |
| 30 | * one easily accessible and hopefully it doesn't matter.*/ |
| 31 | |
| 32 | SetPhrasePalettecxx . . $ SetPhrasePalette#::SetPhrasePalettecxx . . $ SetPhrasePalette#SetPhrasePalette(8f41bc275abc9962).(CyberOroConnectioncxx . . $ CyberOroConnection# * con) : |
| 33 | QToolBarcxx . . $ QToolBar#QToolBar(90d5708627041e22).(trcxx . . $ SetPhrasePalette#tr(75d9f1c324b4579d).("Chat Phrases"), /*Qt::Tool | Qt::WindowStaysOnTopHint | Qt::WindowShadeButtonHint*/0), connectioncxx . . $ SetPhrasePalette#connection.(con) |
| 34 | { |
| 35 | stdcxx . . $ std/::mapcxx . . $ std/map#<unsigned short, QString>::iteratorcxx . . $ std/map#iterator# itcxx . . $ std/_Rb_tree_iterator#_Rb_tree_iterator(ced63f7c635d850d).; |
| 36 | |
| 37 | for(it =cxx . . $ std/_Rb_tree_iterator#`operator=`(7e573ca7db63492d). ORO_setphrasecxx . . $ ORO_setphrase..begincxx . . $ std/map#begin(7e4de33083b6e738).(); it !=cxx . . $ std/`operator!=`(be6a71a859368080). ORO_setphrasecxx . . $ ORO_setphrase..endcxx . . $ std/map#end(7e4de33083b6e738).(); it++cxx . . $ std/_Rb_tree_iterator#operator++(2987e7ff93f61dc1).) |
| 38 | actionscxx . . $ SetPhrasePalette#actions..push_backcxx . . $ std/vector#push_back(fe7a8a4d1eddb70).(new QActioncxx . . $ QAction#QAction(6b24f83d17022bd9).(it->cxx . . $ std/_Rb_tree_iterator#`operator->`(34d6acfd341ba7ab).secondcxx . . $ std/pair#second., this)); |
| 39 | |
| 40 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<QAction *>::iteratorcxx . . $ std/vector#iterator# actions_it = actionscxx . . $ SetPhrasePalette#actions..begincxx . . $ std/vector#begin(55a6de06420d4903).(); |
| 41 | |
| 42 | button0cxx . . $ SetPhrasePalette#button0. = new QPushButtoncxx . . $ QPushButton#QPushButton(90d5708627041e22).("0"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 43 | QMenucxx . . $ QMenu# *menu0 = new QMenucxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).(this); |
| 44 | menu0->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 45 | menu0->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 46 | menu0->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 47 | menu0->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 48 | menu0->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 49 | button0cxx . . $ SetPhrasePalette#button0.->setMenucxx . . $ QPushButton#setMenu(cb52c12b49e9b51b).(menu0); |
| 50 | |
| 51 | button1cxx . . $ SetPhrasePalette#button1. = new QPushButtoncxx . . $ QPushButton#QPushButton(90d5708627041e22).("1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 52 | QMenucxx . . $ QMenu# *menu1 = new QMenucxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).(this); |
| 53 | menu1->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 54 | menu1->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 55 | menu1->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 56 | menu1->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 57 | menu1->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 58 | button1cxx . . $ SetPhrasePalette#button1.->setMenucxx . . $ QPushButton#setMenu(cb52c12b49e9b51b).(menu1); |
| 59 | |
| 60 | button2cxx . . $ SetPhrasePalette#button2. = new QPushButtoncxx . . $ QPushButton#QPushButton(90d5708627041e22).("2"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 61 | QMenucxx . . $ QMenu# *menu2 = new QMenucxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).(this); |
| 62 | menu2->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 63 | menu2->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 64 | menu2->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 65 | menu2->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 66 | menu2->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 67 | button2cxx . . $ SetPhrasePalette#button2.->setMenucxx . . $ QPushButton#setMenu(cb52c12b49e9b51b).(menu2); |
| 68 | |
| 69 | button3cxx . . $ SetPhrasePalette#button3. = new QPushButtoncxx . . $ QPushButton#QPushButton(90d5708627041e22).("3"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 70 | QMenucxx . . $ QMenu# *menu3 = new QMenucxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).(this); |
| 71 | menu3->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 72 | menu3->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 73 | menu3->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 74 | menu3->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 75 | menu3->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 76 | button3cxx . . $ SetPhrasePalette#button3.->setMenucxx . . $ QPushButton#setMenu(cb52c12b49e9b51b).(menu3); |
| 77 | |
| 78 | button4cxx . . $ SetPhrasePalette#button4. = new QPushButtoncxx . . $ QPushButton#QPushButton(90d5708627041e22).("4"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 79 | QMenucxx . . $ QMenu# *menu4 = new QMenucxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).(this); |
| 80 | menu4->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 81 | menu4->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 82 | menu4->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 83 | menu4->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 84 | menu4->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 85 | button4cxx . . $ SetPhrasePalette#button4.->setMenucxx . . $ QPushButton#setMenu(cb52c12b49e9b51b).(menu4); |
| 86 | |
| 87 | button5cxx . . $ SetPhrasePalette#button5. = new QPushButtoncxx . . $ QPushButton#QPushButton(90d5708627041e22).("5"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 88 | QMenucxx . . $ QMenu# *menu5 = new QMenucxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).(this); |
| 89 | menu5->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 90 | menu5->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 91 | menu5->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 92 | menu5->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 93 | menu5->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 94 | button5cxx . . $ SetPhrasePalette#button5.->setMenucxx . . $ QPushButton#setMenu(cb52c12b49e9b51b).(menu5); |
| 95 | |
| 96 | button6cxx . . $ SetPhrasePalette#button6. = new QPushButtoncxx . . $ QPushButton#QPushButton(90d5708627041e22).("6"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 97 | QMenucxx . . $ QMenu# *menu6 = new QMenucxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).(this); |
| 98 | menu6->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 99 | menu6->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 100 | menu6->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 101 | menu6->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 102 | menu6->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 103 | button6cxx . . $ SetPhrasePalette#button6.->setMenucxx . . $ QPushButton#setMenu(cb52c12b49e9b51b).(menu6); |
| 104 | |
| 105 | button7cxx . . $ SetPhrasePalette#button7. = new QPushButtoncxx . . $ QPushButton#QPushButton(90d5708627041e22).("7"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 106 | QMenucxx . . $ QMenu# *menu7 = new QMenucxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).(this); |
| 107 | menu7->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 108 | menu7->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 109 | menu7->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 110 | menu7->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 111 | menu7->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 112 | button7cxx . . $ SetPhrasePalette#button7.->setMenucxx . . $ QPushButton#setMenu(cb52c12b49e9b51b).(menu7); |
| 113 | |
| 114 | button8cxx . . $ SetPhrasePalette#button8. = new QPushButtoncxx . . $ QPushButton#QPushButton(90d5708627041e22).("8"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 115 | QMenucxx . . $ QMenu# *menu8 = new QMenucxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).(this); |
| 116 | menu8->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 117 | menu8->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 118 | menu8->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 119 | menu8->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 120 | menu8->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 121 | button8cxx . . $ SetPhrasePalette#button8.->setMenucxx . . $ QPushButton#setMenu(cb52c12b49e9b51b).(menu8); |
| 122 | |
| 123 | button9cxx . . $ SetPhrasePalette#button9. = new QPushButtoncxx . . $ QPushButton#QPushButton(90d5708627041e22).("9"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 124 | QMenucxx . . $ QMenu# *menu9 = new QMenucxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).(this); |
| 125 | menu9->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 126 | menu9->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 127 | menu9->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 128 | menu9->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); actions_it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).; |
| 129 | menu9->addActioncxx . . $ QWidget#addAction(92b1e80c0a7f1406).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).actions_it); //actions_it++; |
| 130 | button9cxx . . $ SetPhrasePalette#button9.->setMenucxx . . $ QPushButton#setMenu(cb52c12b49e9b51b).(menu9); |
| 131 | |
| 132 | addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(button0cxx . . $ SetPhrasePalette#button0.); |
| 133 | addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(button1cxx . . $ SetPhrasePalette#button1.); |
| 134 | addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(button2cxx . . $ SetPhrasePalette#button2.); |
| 135 | addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(button3cxx . . $ SetPhrasePalette#button3.); |
| 136 | addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(button4cxx . . $ SetPhrasePalette#button4.); |
| 137 | addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(button5cxx . . $ SetPhrasePalette#button5.); |
| 138 | addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(button6cxx . . $ SetPhrasePalette#button6.); |
| 139 | addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(button7cxx . . $ SetPhrasePalette#button7.); |
| 140 | addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(button8cxx . . $ SetPhrasePalette#button8.); |
| 141 | addWidgetcxx . . $ QToolBar#addWidget(e05c3352fc75448e).(button9cxx . . $ SetPhrasePalette#button9.); |
| 142 | |
| 143 | setFloatablecxx . . $ QToolBar#setFloatable(b45ddcbc8423892c).(true); |
| 144 | setMovablecxx . . $ QToolBar#setMovable(b45ddcbc8423892c).(true); |
| 145 | /* Don't like setting size like this, would prefer buttons to be |
| 146 | * smaller... also need a window bar that's collapsible... maybe we |
| 147 | * should have stuck with the normal dialog FIXME */ |
| 148 | resizecxx . . $ QWidget#resize(3e454b8ccf442868).(825, 30); |
| 149 | |
| 150 | connectcxx . . $ QObject#connect(835f87066c895669).(menu0, &QMenucxx . . $ QMenu#::triggeredcxx . . $ QMenu#triggered(92b1e80c0a7f1406)., this, &SetPhrasePalettecxx . . $ SetPhrasePalette#::slot_triggeredcxx . . $ SetPhrasePalette#slot_triggered(92b1e80c0a7f1406).); |
| 151 | connectcxx . . $ QObject#connect(835f87066c895669).(menu1, &QMenucxx . . $ QMenu#::triggeredcxx . . $ QMenu#triggered(92b1e80c0a7f1406)., this, &SetPhrasePalettecxx . . $ SetPhrasePalette#::slot_triggeredcxx . . $ SetPhrasePalette#slot_triggered(92b1e80c0a7f1406).); |
| 152 | connectcxx . . $ QObject#connect(835f87066c895669).(menu2, &QMenucxx . . $ QMenu#::triggeredcxx . . $ QMenu#triggered(92b1e80c0a7f1406)., this, &SetPhrasePalettecxx . . $ SetPhrasePalette#::slot_triggeredcxx . . $ SetPhrasePalette#slot_triggered(92b1e80c0a7f1406).); |
| 153 | connectcxx . . $ QObject#connect(835f87066c895669).(menu3, &QMenucxx . . $ QMenu#::triggeredcxx . . $ QMenu#triggered(92b1e80c0a7f1406)., this, &SetPhrasePalettecxx . . $ SetPhrasePalette#::slot_triggeredcxx . . $ SetPhrasePalette#slot_triggered(92b1e80c0a7f1406).); |
| 154 | connectcxx . . $ QObject#connect(835f87066c895669).(menu4, &QMenucxx . . $ QMenu#::triggeredcxx . . $ QMenu#triggered(92b1e80c0a7f1406)., this, &SetPhrasePalettecxx . . $ SetPhrasePalette#::slot_triggeredcxx . . $ SetPhrasePalette#slot_triggered(92b1e80c0a7f1406).); |
| 155 | connectcxx . . $ QObject#connect(835f87066c895669).(menu5, &QMenucxx . . $ QMenu#::triggeredcxx . . $ QMenu#triggered(92b1e80c0a7f1406)., this, &SetPhrasePalettecxx . . $ SetPhrasePalette#::slot_triggeredcxx . . $ SetPhrasePalette#slot_triggered(92b1e80c0a7f1406).); |
| 156 | connectcxx . . $ QObject#connect(835f87066c895669).(menu6, &QMenucxx . . $ QMenu#::triggeredcxx . . $ QMenu#triggered(92b1e80c0a7f1406)., this, &SetPhrasePalettecxx . . $ SetPhrasePalette#::slot_triggeredcxx . . $ SetPhrasePalette#slot_triggered(92b1e80c0a7f1406).); |
| 157 | connectcxx . . $ QObject#connect(835f87066c895669).(menu7, &QMenucxx . . $ QMenu#::triggeredcxx . . $ QMenu#triggered(92b1e80c0a7f1406)., this, &SetPhrasePalettecxx . . $ SetPhrasePalette#::slot_triggeredcxx . . $ SetPhrasePalette#slot_triggered(92b1e80c0a7f1406).); |
| 158 | connectcxx . . $ QObject#connect(835f87066c895669).(menu8, &QMenucxx . . $ QMenu#::triggeredcxx . . $ QMenu#triggered(92b1e80c0a7f1406)., this, &SetPhrasePalettecxx . . $ SetPhrasePalette#::slot_triggeredcxx . . $ SetPhrasePalette#slot_triggered(92b1e80c0a7f1406).); |
| 159 | connectcxx . . $ QObject#connect(835f87066c895669).(menu9, &QMenucxx . . $ QMenu#::triggeredcxx . . $ QMenu#triggered(92b1e80c0a7f1406)., this, &SetPhrasePalettecxx . . $ SetPhrasePalette#::slot_triggeredcxx . . $ SetPhrasePalette#slot_triggered(92b1e80c0a7f1406).); |
| 160 | |
| 161 | /*QGridLayout * mainLayout = new QGridLayout; |
| 162 | mainLayout->setSizeConstraint(QLayout::SetFixedSize); |
| 163 | mainLayout->addWidget(buttonBox, 1, 0); |
| 164 | setLayout(mainLayout);*/ |
| 165 | |
| 166 | // or no title? |
| 167 | setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).(trcxx . . $ SetPhrasePalette#tr(75d9f1c324b4579d).("Set Phrases")); |
| 168 | |
| 169 | //really this should take into account a parent window |
| 170 | //screen size, something, and this should be hideable, minimizable, |
| 171 | //something, smaller buttons... FIXME |
| 172 | movecxx . . $ QWidget#move(3e454b8ccf442868).(60, 680); |
| 173 | } |
| 174 | |
| 175 | SetPhrasePalettecxx . . $ SetPhrasePalette#::~cxx . . $ SetPhrasePalette#`~SetPhrasePalette`(ced63f7c635d850d).SetPhrasePalettecxx . . $ SetPhrasePalette#() |
| 176 | { |
| 177 | delete button0cxx . . $ SetPhrasePalette#button0.; |
| 178 | delete button1cxx . . $ SetPhrasePalette#button1.; |
| 179 | delete button2cxx . . $ SetPhrasePalette#button2.; |
| 180 | delete button3cxx . . $ SetPhrasePalette#button3.; |
| 181 | delete button4cxx . . $ SetPhrasePalette#button4.; |
| 182 | delete button5cxx . . $ SetPhrasePalette#button5.; |
| 183 | delete button6cxx . . $ SetPhrasePalette#button6.; |
| 184 | delete button7cxx . . $ SetPhrasePalette#button7.; |
| 185 | delete button8cxx . . $ SetPhrasePalette#button8.; |
| 186 | delete button9cxx . . $ SetPhrasePalette#button9.; |
| 187 | |
| 188 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<QAction *>::iteratorcxx . . $ std/vector#iterator# itcxx . . $ __gnu_cxx/__normal_iterator#__normal_iterator(ced63f7c635d850d).; |
| 189 | for(it =cxx . . $ __gnu_cxx/__normal_iterator#`operator=`(596c9db3b755f2b9). actionscxx . . $ SetPhrasePalette#actions..begincxx . . $ std/vector#begin(55a6de06420d4903).(); it !=cxx . . $ __gnu_cxx/`operator!=`(30ee64f2df4eef8b). actionscxx . . $ SetPhrasePalette#actions..endcxx . . $ std/vector#end(55a6de06420d4903).(); it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2).) |
| 190 | delete (*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).it); |
| 191 | } |
| 192 | |
| 193 | void SetPhrasePalettecxx . . $ SetPhrasePalette#::slot_triggeredcxx . . $ SetPhrasePalette#slot_triggered(92b1e80c0a7f1406).(QActioncxx . . $ QAction# * a) |
| 194 | { |
| 195 | int i = 0; |
| 196 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<QAction *>::iteratorcxx . . $ std/vector#iterator# itcxx . . $ __gnu_cxx/__normal_iterator#__normal_iterator(ced63f7c635d850d).; |
| 197 | stdcxx . . $ std/::mapcxx . . $ std/map#<unsigned short, QString>::iteratorcxx . . $ std/map#iterator# string_it = ORO_setphrasecxx . . $ ORO_setphrase..begincxx . . $ std/map#begin(7e4de33083b6e738).(); |
| 198 | for(it =cxx . . $ __gnu_cxx/__normal_iterator#`operator=`(596c9db3b755f2b9). actionscxx . . $ SetPhrasePalette#actions..begincxx . . $ std/vector#begin(55a6de06420d4903).(); it !=cxx . . $ __gnu_cxx/`operator!=`(30ee64f2df4eef8b). actionscxx . . $ SetPhrasePalette#actions..endcxx . . $ std/vector#end(55a6de06420d4903).(); it++cxx . . $ __gnu_cxx/__normal_iterator#operator++(6cefca3db4774be2)., i++) |
| 199 | { |
| 200 | if(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).it == a) |
| 201 | { |
| 202 | while(i--) |
| 203 | string_it++cxx . . $ std/_Rb_tree_iterator#operator++(2987e7ff93f61dc1).; |
| 204 | connectioncxx . . $ SetPhrasePalette#connection.->sendSetChatMsgcxx . . $ CyberOroConnection#sendSetChatMsg(ed53e3bbd3fa2f69).(string_it->cxx . . $ std/_Rb_tree_iterator#`operator->`(34d6acfd341ba7ab).firstcxx . . $ std/pair#first.); |
| 205 | return; |
| 206 | } |
| 207 | } |
| 208 | qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("Can't find set phrase for action!"); |
| 209 | } |
| 210 |