~ubuntu-branches/ubuntu/natty/museek+/natty

« back to all changes in this revision

Viewing changes to museeq/settingsdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Cécile (Le_Vert)
  • Date: 2007-09-07 22:44:15 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070907224415-lpwy5zdp45pljd8i
Tags: 1:0.1.13+svn.20070907.r741-1
* New upstream release: fix implicitly converted pointers (FTBFS on ia64).
* Add an epoch to hijack old murmur package.
* Fix debian/watch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
class QWidget;
23
23
class QLabel;
24
24
class QComboBox;
 
25
class QTextEdit;
25
26
class QLineEdit;
 
27
class QListView;
 
28
class QListViewItem;
 
29
class QListView;
26
30
class QSpinBox;
27
31
class QButtonGroup;
28
32
class QRadioButton;
29
33
class QCheckBox;
 
34
class QProcess;
30
35
 
31
36
class SettingsDialog : public QDialog
32
37
{
36
41
        SettingsDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
37
42
        ~SettingsDialog();
38
43
        
39
 
        QTabWidget* mTabHolder;
 
44
        QTabWidget* mTabHolder, * mMuseeqTabs, * mMuseekdTabs;
40
45
        QPushButton* mOK, * mSave, * mCancel;
41
46
        QPushButton* SConnect;
42
47
        QPushButton* SDisconnect;
43
48
        QPushButton* SReloadShares;
44
49
        QPushButton* SIncompleteButton;
45
50
        QPushButton* SDownloadButton;
46
 
        QWidget* sharesTab;
47
 
        QWidget* usersTab;
48
 
        QWidget* serverTab;
 
51
        QPushButton* SConfigButton;
 
52
        
 
53
        QPushButton* NSharesRefresh, * NSharesRescan, * NSharesAdd, * NSharesRemove, * NSharesUpdate;
 
54
 
 
55
        QPushButton* BSharesRefresh, * BSharesRescan, * BSharesAdd, * BSharesRemove, * BSharesUpdate;
 
56
        
 
57
        QWidget* sharesTab, * usersTab, * serverTab, * ColorsAndFontsTab, * AppearanceTab;
 
58
        QWidget* connectionsTab, * LoggingTab, * UserInfoTab, * ProtocolTab;
 
59
        
49
60
        QComboBox* SFileSystemEncoding, * SNetworkEncoding;
50
61
        QLabel* fEncodingLabel, * nEncodingLabel;
51
62
        QLabel* serverPortLabel;
52
63
        QLabel* serverHostLabel;
53
 
        QLabel* usernamelabel;
 
64
        QLabel* usernamelabel, *configLabel;
54
65
        QLabel* passwordLabel;
55
66
        QLabel* instructionsLabel;
56
67
        QLabel* downloadLabel;
57
68
        QLabel* incompleteLabel;
 
69
        
 
70
        QLabel* listenPortsLabel, * listenPortsStartLabel, * listenPortsEndLabel;
 
71
 
 
72
        QPushButton* LoggingPrivateButton, * LoggingRoomButton;
 
73
        QLineEdit* LoggingPrivateDir, * LoggingRoomDir;
 
74
        
 
75
        QTextEdit* mInfoText;
 
76
        QButtonGroup* buttonGroup1;
 
77
        QRadioButton* mClear;
 
78
        QRadioButton* mDontTouch;
 
79
        QLineEdit* mImage;
 
80
        QRadioButton* mUpload;
 
81
        QPushButton* mBrowse;
 
82
 
58
83
        QSpinBox* SServerPort;
59
84
        QButtonGroup* buttonGroup2;
60
85
        QRadioButton* SActive;
63
88
        QLineEdit* SSoulseekUsername;
64
89
        QLineEdit* SServerHost;
65
90
        QLineEdit* SDownDir;
66
 
        QLineEdit* SIncompleteDir;
67
 
        QCheckBox* SBuddiesPrivileged, * SOnlineAlerts,* SShareBuddiesOnly, * STrustedUsers, * SBuddiesShares, * SUserWarnings, * SIPLog;
 
91
        QLineEdit* SIncompleteDir, * SConfigFile;
68
92
 
 
93
        QPushButton* mNewHandler;
 
94
        QPushButton* mModifyHandler;
 
95
        QListView* mProtocols;
 
96
        
 
97
        QLabel * TimeFontLabel, * TimeColorLabel, * MeColorLabel, * MessageFontLabel, * BuddiedColorLabel, * LocalTextLabel, * TrustColorLabel, * BannedColorLabel, * RemoteColorLabel;
 
98
        QPushButton * MeColorButton, * TimeFontButton, * NicknameColorButton, * MessageFontButton, * BuddiedColorButton, * TrustColorButton, * BannedColorButton, * RemoteColorButton, * TimeColorButton;
 
99
        QLineEdit* SRemoteText, * SNicknameText, * STrustedText, * SBannedText, * STimeText, * SMessageFont, * SMeText, * STimeFont, * SBuddiedText;
 
100
        
 
101
        QSpinBox* CPortStart, * CPortEnd;
 
102
        QCheckBox* SBuddiesPrivileged, * SOnlineAlerts,* SShareBuddiesOnly, * STrustedUsers, * SBuddiesShares, * SUserWarnings, * SIPLog, * LoggingPrivate, * LoggingRooms;
 
103
        QListView* ListNormalShares, * ListBuddyShares;
 
104
        
69
105
public slots:
70
106
        void SConnect_clicked();
71
107
        void SDisconnect_clicked();
73
109
        void save();
74
110
        virtual void SDownload_clicked();
75
111
        virtual void SIncomplete_clicked();
76
 
 
 
112
        
 
113
        void BuddySharesAdd();
 
114
        void BuddySharesRefresh();
 
115
        void BuddySharesRemove();
 
116
        void BuddySharesRescan();
 
117
        void BuddySharesUpdate();
 
118
 
 
119
        void NormalSharesAdd();
 
120
        void NormalSharesRefresh();
 
121
        void NormalSharesRemove();
 
122
        void NormalSharesRescan();
 
123
        void NormalSharesUpdate();
 
124
        
 
125
        void UserImageBrowse_clicked();
 
126
 
 
127
        void mNewHandler_clicked();
 
128
        void mModifyHandler_clicked();
 
129
        void mProtocols_itemRenamed( QListViewItem * item, int col );
 
130
         
 
131
        void slotConfigChanged(const QString&, const QString&, const QString&);
 
132
        void SBuddiesSharesToggled(bool);
 
133
        void readNormal();
 
134
        void readBuddy();
 
135
        void PrivateDirSelect();
 
136
        void RoomDirSelect();
 
137
 
 
138
        virtual void color_text_me();
 
139
        virtual void color_text_buddied();
 
140
        virtual void color_text_nickname();
 
141
        virtual void color_text_banned();
 
142
        virtual void color_text_remote();
 
143
        virtual void color_text_time();
 
144
        virtual void color_text_trusted();
 
145
        virtual void font_text_time();
 
146
        virtual void font_text_message();
77
147
protected:
78
148
        QHBoxLayout* buttonsLayout;
79
 
        QSpacerItem* spacer14, * spacer16, * spacer15, * spacer13, * spacer5;
80
 
 
81
 
 
 
149
        QSpacerItem* spacer14, * spacer16, * spacer15, * spacer13, * spacer5, * protocolSpacer;
 
150
        QGridLayout* ServerGrid, * SharesGrid, *ConnectionsGrid, *UsersGrid,
 
151
        *LoggingGrid, * UserInfoGrid, * buttonGroup1Layout, * ProtocolGrid,
 
152
        * ColorsGrid, * AppearanceGrid;
 
153
        QProcess * proc1;
 
154
        QProcess * proc2;       
82
155
 
83
156
protected slots:
84
 
    virtual void languageChange();
 
157
        virtual void languageChange();
85
158
 
 
159
        void SConfig_clicked();
 
160
        void MuscanBuddyDone();
 
161
        void MuscanNormalDone();
 
162
        void EnableNormalButtons(bool);
 
163
        void EnableBuddyButtons(bool);
86
164
};
87
165
 
88
166
#endif // SETTINGSDIALOG_H