Ejemplo n.º 1
0
//VOXOX CHANGE by Rolando - 2009.10.23 
QtUMItemManager::QtUMItemManager(CWengoPhone & cWengoPhone, QtUMItemList & qtUMItemList, QObject * parent, QTreeWidget * target)
: QObject(parent),
	_qtUMItemList(qtUMItemList),
	_cWengoPhone(cWengoPhone)
{

	LANGUAGE_CHANGE(this);
	languageChanged();

	_tree		= dynamic_cast<QtUMTreeWidget*>(target);
	_sortItems = true;

	_sortTimerId = -1;
	_showTimerId = -1;
	_canSort	= true;
	_wantSort	= false;
	_canShow	= true;
	_wantShow	= false;
	_initialLoad = false;	//VOXOX - JRT - 2009.04.07 

	SAFE_CONNECT(_tree, SIGNAL(closeCurrentItem(QtUMItem *)), SLOT(closeCurrentItemSlot(QtUMItem *)));//VOXOX CHANGE by Rolando - 2009.08.28 
	SAFE_CONNECT(_tree, SIGNAL(closeCurrentGroup(QtUMGroup *)), SLOT(closeCurrentGroupSlot(QtUMGroup *)));
	SAFE_CONNECT(_tree, SIGNAL(itemLeftClicked( QTreeWidgetItem*, int)), SLOT(itemClickedSlot( QTreeWidgetItem*, int)));//VOXOX CHANGE by Rolando - 2009.08.28 
	SAFE_CONNECT(_tree, SIGNAL(groupLeftClicked( QTreeWidgetItem*, int)), SLOT(groupClickedSlot( QTreeWidgetItem*, int)));//VOXOX CHANGE by Rolando - 2009.08.28 

}
Ejemplo n.º 2
0
QtWebDirectory::QtWebDirectory(QWidget * parent)
	: QtBrowser(parent) {

	QWidget * widget = (QWidget *) getWidget();

	CloseEventFilter * closeEventFilter = new CloseEventFilter(this, SLOT(CloseEventFilterSlot()));
	widget->installEventFilter(closeEventFilter);

	widget->resize(715, 569);
	LANGUAGE_CHANGE(widget);
	init();
}
Ejemplo n.º 3
0
QtAddWengoAccount::QtAddWengoAccount(QtLoginDialog * qtLoginDialog, QWidget* parent, CUserProfileHandler & cUserProfileHandler)
	:ILogin(qtLoginDialog, cUserProfileHandler){

	_ui = new Ui::AddWengoAccount();
	_ui->setupUi(this);

	LANGUAGE_CHANGE(this);

	WidgetBackgroundImage::setBackgroundImage(_ui->loginLabel, ":pics/headers/login.png", WidgetBackgroundImage::AdjustHeight);

	SAFE_CONNECT(_ui->loginButton, SIGNAL(clicked()), SLOT(loginClicked()));
	SAFE_CONNECT(_ui->backButton, SIGNAL(clicked()), SLOT(goBack()));
	SAFE_CONNECT_RECEIVER(_ui->cancelButton, SIGNAL(clicked()), _loginDialog, SLOT(reject()));
	SAFE_CONNECT(_ui->createWengoAccountLabel, SIGNAL(linkActivated(const QString &)), SLOT(createAccountButtonClicked()));
	SAFE_CONNECT(_ui->helpLabel, SIGNAL(linkActivated(const QString &)), SLOT(helpButtonClicked()));
	SAFE_CONNECT(_ui->forgotPasswordLabel, SIGNAL(linkActivated(const QString &)), SLOT(forgotPasswordButtonClicked()));
}
Ejemplo n.º 4
0
VoxOxToolTipLineEdit::VoxOxToolTipLineEdit(QWidget * parent)
	: QLineEdit(0) {

	_parentWidget = parent;//VOXOX CHANGE by Rolando - 2009.05.22 - varible to send focus when it is needed

	LANGUAGE_CHANGE(this);

	_primaryStyleSheet = QString("QWidget{ border: none; color: white; background: black; }");
	_secondaryStyleSheet = QString("QWidget{ border: none; color: gray; background: black; }");

	SAFE_CONNECT(this, SIGNAL(textChanged(QString)), SLOT(textChangedSlot(QString)));//VOXOX CHANGE Rolando 03-24-09
	SAFE_CONNECT(this, SIGNAL(textEdited(QString)), SLOT(textChangedSlot(QString)));//VOXOX CHANGE Rolando 03-24-09

	_shortMessage = "";
	_message = "";

	init();
}
Ejemplo n.º 5
0
//VOXOX CHANGE by Rolando 2009.05.05
QtVoxOxLoginMessage::QtVoxOxLoginMessage(QWidget* parent, QtWengoPhone * qtWengoPhone, CUserProfileHandler & cUserProfileHandler)
	: QWidget(NULL),
	_cUserProfileHandler(cUserProfileHandler),
	_qtWengoPhone(qtWengoPhone)
	{

	_qtWengoPhone = qtWengoPhone;

	_ui = new Ui::LoginMessage();
	_ui->setupUi(this);

	_profileName = "";

	_ui->tryAgainButton->setDefault(true);
	
	LANGUAGE_CHANGE(this);
		
	SAFE_CONNECT(_ui->tryAgainButton, SIGNAL(clicked()), SLOT(tryAgainButtonClicked()));

}
Ejemplo n.º 6
0
//VOXOX CHANGE by Rolando 2009.05.05
QtVoxOxLoadingLogin::QtVoxOxLoadingLogin(QWidget* parent, QtWengoPhone * qtWengoPhone, CUserProfileHandler & cUserProfileHandler)
	: QWidget(NULL),
	_cUserProfileHandler(cUserProfileHandler),
	_qtWengoPhone(qtWengoPhone)
	{

	_ui = new Ui::VoxOxLoadingLogin();
	_ui->setupUi(this);

	//setStyleSheet(QString("QLabel#loadingMessage{ color: #ffffff; font-size: 13px; font-weight: bold; font-family: \"Tahoma\"; } "));

	_profileName = "";
		
	LANGUAGE_CHANGE(this);

	//VOXOX CHANGE by Rolando - 2009.05.21 - we use QMovie to be able to show a "gif" animation
	QMovie * movie =  new QMovie(":/pics/loading.gif");
	_ui->loadingMessage->setMovie(movie);
	movie->start();

}
Ejemplo n.º 7
0
QtSystray::QtSystray(QObject * parent)
	: QObjectThreadSafe(NULL) {

//	_qtWengoPhone = (QtWengoPhone *) parent;	//VOXOX - JRT - 2009.04.15 
	_qtWengoPhone = dynamic_cast<QtWengoPhone*>(parent);
	_qtToolBar = dynamic_cast<QtToolBar*>(_qtWengoPhone->getQtToolBar());

	_recentContacts = NULL;
	_startNew = NULL;

	//Check Internet connection status
	NetworkObserver::getInstance().connectionIsDownEvent +=
		boost::bind(&QtSystray::connectionIsDownEventHandler, this);

	NetworkObserver::getInstance().connectionIsUpEvent +=
		boost::bind(&QtSystray::connectionIsUpEventHandler, this);

	//trayMenu
	_trayMenu = new QMenu(_qtWengoPhone->getWidget());
	SAFE_CONNECT(_trayMenu, SIGNAL(aboutToShow()), SLOT(setTrayMenu()));

	//trayIcon
	_trayIcon = new TrayIcon(QPixmap(":pics/systray/voxox.png"), tr("VoxOx"), _trayMenu, _qtWengoPhone->getWidget());

#if defined(OS_LINUX)
	// On Linux, the main window is shown using only one click
	SAFE_CONNECT(_trayIcon, SIGNAL(clicked( const QPoint&, int)), SLOT(toggleMainWindow()));
#else
	SAFE_CONNECT(_trayIcon, SIGNAL(doubleClicked(const QPoint &)), SLOT(toggleMainWindow()));
#endif
	phoneLineStateChanged(EnumPhoneLineState::PhoneLineStateProgress);
	_trayIcon->show();

	//systray re-initialization
	SAFE_CONNECT(_qtWengoPhone, SIGNAL(userProfileDeleted()), SLOT(userProfileDeleted()));

	setTrayMenu();

	LANGUAGE_CHANGE(_trayIcon);
}
Ejemplo n.º 8
0
//VOXOX CHANGE by Rolando 04-06-09
QtAddVoxOxAccount::QtAddVoxOxAccount(QtLoginDialog * qtLoginDialog, QWidget* parent, CUserProfileHandler & cUserProfileHandler)
	:ILogin(qtLoginDialog, cUserProfileHandler){

	_ui = new Ui::AddVoxOxAccount();
	_ui->setupUi(this);
	

	LANGUAGE_CHANGE(this);

	//WidgetBackgroundImage::setBackgroundImage(_ui->loginLabel, ":pics/headers/login.png", WidgetBackgroundImage::AdjustHeight);

	SAFE_CONNECT(_ui->loginButton, SIGNAL(clicked()), SLOT(loginClicked()));
	SAFE_CONNECT(_ui->linkToSignUpLabel, SIGNAL(linkActivated(const QString &)), SLOT(linkToSignUpLabelClicked()));
	//SAFE_CONNECT(_ui->helpLabel, SIGNAL(linkActivated(const QString &)), SLOT(helpButtonClicked()));
	SAFE_CONNECT(_ui->linkForgotPasswordLabel, SIGNAL(linkActivated(const QString &)), SLOT(linkForgotPasswordLabelClicked()));
	SAFE_CONNECT(_ui->publicComputerCheckBox, SIGNAL(stateChanged(int)), SLOT(publicComputerStateChanged(int)));
	SAFE_CONNECT(_ui->rememberPasswordCheckBox, SIGNAL(stateChanged(int)), SLOT(rememberPasswordStateChanged(int)));
	SAFE_CONNECT(_ui->usernameComboBox, SIGNAL(activated(int)), SLOT(itemActivatedComboBoxSlot(int)));

	
	resize(QSize(279,380));
}